]> git.eshelyaron.com Git - emacs.git/commitdiff
entered into RCS
authorPaul Reilly <pmr@pajato.com>
Sun, 25 Sep 1994 17:18:58 +0000 (17:18 +0000)
committerPaul Reilly <pmr@pajato.com>
Sun, 25 Sep 1994 17:18:58 +0000 (17:18 +0000)
lwlib/xlwmenu.c

index 32d9ea9f7cc3b6c222a11f498ae24cea05894f79..64763a8f10bddc260101fdf4912c91f77227cd55 100644 (file)
@@ -1289,7 +1289,7 @@ handle_single_motion_event (mw, ev)
     set_new_state (mw, val, level);
   remap_menubar (mw);
   
-#if 0
+#if 1
   /* Sync with the display.  Makes it feel better on X terms. */
   XSync (XtDisplay (mw), False);
 #endif
@@ -1307,6 +1307,7 @@ handle_motion_event (mw, ev)
   handle_single_motion_event (mw, ev);
 
   /* allow motion events to be generated again */
+#if 0
   if (ev->is_hint
       && XQueryPointer (XtDisplay (mw), ev->window,
                        &ev->root, &ev->subwindow,
@@ -1316,6 +1317,14 @@ handle_motion_event (mw, ev)
       && ev->state == state
       && (ev->x_root != x || ev->y_root != y))
     handle_single_motion_event (mw, ev);
+#else
+  XQueryPointer (XtDisplay (mw), ev->window,
+                &ev->root, &ev->subwindow,
+                &ev->x_root, &ev->y_root,
+                &ev->x, &ev->y,
+                &ev->state);
+  handle_single_motion_event (mw, ev);
+#endif
 }
 
 static void 
@@ -1482,3 +1491,13 @@ pop_up_menu (mw, event)
 
   handle_motion_event (mw, (XMotionEvent*)event);
 }
+
+void GetWindowAttributes (w)
+     Widget w;
+{
+  XWindowAttributes attrs;
+
+  XGetWindowAttributes (XtDisplay (w),
+                       XtWindow (w),
+                       &attrs);
+}