changeset 20182:9f3dd970927e

(XTread_socket): Check for bogus (0,0) location.
author Karl Heuer <kwzh@gnu.org>
date Sat, 25 Oct 1997 03:12:31 +0000
parents fe0f0a9bb43f
children add8b7b3a7da
files src/xterm.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Oct 24 20:11:44 1997 +0000
+++ b/src/xterm.c	Sat Oct 25 03:12:31 1997 +0000
@@ -4479,6 +4479,16 @@
 		      f->output_data.x->win_gravity = NorthWestGravity;
 		      x_wm_set_size_hint (f, (long) 0, 0);
 		    }
+#ifdef USE_MOTIF
+		  /* Some window managers pass (0,0) as the location of
+		     the window, and the Motif event handler stores it
+		     in the emacs widget, which messes up Motif menus.  */
+		  if (event.xconfigure.x == 0 && event.xconfigure.y == 0)
+		    {
+		      event.xconfigure.x = f->output_data.x->widget->core.x;
+		      event.xconfigure.y = f->output_data.x->widget->core.y;
+		    }
+#endif
 		}
 	      goto OTHER;