aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorMartin Rudalics2014-02-18 11:52:00 +0100
committerMartin Rudalics2014-02-18 11:52:00 +0100
commit5185f8ed16a8ec076b2517fb8bf50c56e12d76af (patch)
tree37de933bf3d9b4a13ab89b514b3a5e0d71189f7b /src/widget.c
parenta73fae1ffa16e60f5ddc3a5536d322edc10a8a83 (diff)
downloademacs-5185f8ed16a8ec076b2517fb8bf50c56e12d76af.tar.gz
emacs-5185f8ed16a8ec076b2517fb8bf50c56e12d76af.zip
Don't set FRAME_PIXEL_HEIGHT and FRAME_PIXEL_WIDTH in update_various_frame_slots (Bug#16736).
* widget.c (update_various_frame_slots): Don't set FRAME_PIXEL_HEIGHT and FRAME_PIXEL_WIDTH here (Bug#16736).
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widget.c b/src/widget.c
index ecd42b35719..838e775f918 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -599,8 +599,13 @@ update_various_frame_slots (EmacsFrame ew)
599{ 599{
600 struct frame *f = ew->emacs_frame.frame; 600 struct frame *f = ew->emacs_frame.frame;
601 struct x_output *x = f->output_data.x; 601 struct x_output *x = f->output_data.x;
602 /* Don't do that: It confuses the check in change_frame_size_1 whether
603 the pixel size of the frame changed due to a change of the internal
604 border width. Bug#16736. */
605#if 0
602 FRAME_PIXEL_HEIGHT (f) = ew->core.height + x->menubar_height; 606 FRAME_PIXEL_HEIGHT (f) = ew->core.height + x->menubar_height;
603 FRAME_PIXEL_WIDTH (f) = ew->core.width; 607 FRAME_PIXEL_WIDTH (f) = ew->core.width;
608#endif
604 f->internal_border_width = ew->emacs_frame.internal_border_width; 609 f->internal_border_width = ew->emacs_frame.internal_border_width;
605 610
606} 611}