aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1997-10-25 03:12:31 +0000
committerKarl Heuer1997-10-25 03:12:31 +0000
commit8f08dc930c2380fff5c21bd4d6b8540b9145f7f8 (patch)
treee45f5456a9aeee9d3f3865c45c84f553f706f350 /src
parentd83ee5785220c1d3425c64a57f07c4686d97d1bf (diff)
downloademacs-8f08dc930c2380fff5c21bd4d6b8540b9145f7f8.tar.gz
emacs-8f08dc930c2380fff5c21bd4d6b8540b9145f7f8.zip
(XTread_socket): Check for bogus (0,0) location.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index dce34e89031..5893fc8e84c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4479,6 +4479,16 @@ XTread_socket (sd, bufp, numchars, expected)
4479 f->output_data.x->win_gravity = NorthWestGravity; 4479 f->output_data.x->win_gravity = NorthWestGravity;
4480 x_wm_set_size_hint (f, (long) 0, 0); 4480 x_wm_set_size_hint (f, (long) 0, 0);
4481 } 4481 }
4482#ifdef USE_MOTIF
4483 /* Some window managers pass (0,0) as the location of
4484 the window, and the Motif event handler stores it
4485 in the emacs widget, which messes up Motif menus. */
4486 if (event.xconfigure.x == 0 && event.xconfigure.y == 0)
4487 {
4488 event.xconfigure.x = f->output_data.x->widget->core.x;
4489 event.xconfigure.y = f->output_data.x->widget->core.y;
4490 }
4491#endif
4482 } 4492 }
4483 goto OTHER; 4493 goto OTHER;
4484 4494