Commit 45d91af4 authored by Paul Reilly's avatar Paul Reilly
Browse files

entered into RCS

parent 00364e4e
...@@ -1289,7 +1289,7 @@ handle_single_motion_event (mw, ev) ...@@ -1289,7 +1289,7 @@ handle_single_motion_event (mw, ev)
set_new_state (mw, val, level); set_new_state (mw, val, level);
remap_menubar (mw); remap_menubar (mw);
#if 0 #if 1
/* Sync with the display. Makes it feel better on X terms. */ /* Sync with the display. Makes it feel better on X terms. */
XSync (XtDisplay (mw), False); XSync (XtDisplay (mw), False);
#endif #endif
...@@ -1307,6 +1307,7 @@ handle_motion_event (mw, ev) ...@@ -1307,6 +1307,7 @@ handle_motion_event (mw, ev)
handle_single_motion_event (mw, ev); handle_single_motion_event (mw, ev);
/* allow motion events to be generated again */ /* allow motion events to be generated again */
#if 0
if (ev->is_hint if (ev->is_hint
&& XQueryPointer (XtDisplay (mw), ev->window, && XQueryPointer (XtDisplay (mw), ev->window,
&ev->root, &ev->subwindow, &ev->root, &ev->subwindow,
...@@ -1316,6 +1317,14 @@ handle_motion_event (mw, ev) ...@@ -1316,6 +1317,14 @@ handle_motion_event (mw, ev)
&& ev->state == state && ev->state == state
&& (ev->x_root != x || ev->y_root != y)) && (ev->x_root != x || ev->y_root != y))
handle_single_motion_event (mw, ev); 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 static void
...@@ -1482,3 +1491,13 @@ pop_up_menu (mw, event) ...@@ -1482,3 +1491,13 @@ pop_up_menu (mw, event)
handle_motion_event (mw, (XMotionEvent*)event); handle_motion_event (mw, (XMotionEvent*)event);
} }
void GetWindowAttributes (w)
Widget w;
{
XWindowAttributes attrs;
XGetWindowAttributes (XtDisplay (w),
XtWindow (w),
&attrs);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment