diff options
author | Paul Reilly <pmr@pajato.com> | 1994-09-25 17:18:58 +0000 |
---|---|---|
committer | Paul Reilly <pmr@pajato.com> | 1994-09-25 17:18:58 +0000 |
commit | 45d91af4244c3d08242431838d4cca4342bbd9c2 (patch) | |
tree | cd41d85613badf53798fc17e69e8fe37380b9f9d /lwlib | |
parent | 00364e4e3d278e9f2dc3762d6f848e6dbe1da545 (diff) | |
download | emacs-45d91af4244c3d08242431838d4cca4342bbd9c2.tar.gz |
entered into RCS
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/xlwmenu.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 32d9ea9f7cc..64763a8f10b 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -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); +} |