Mercurial > emacs
changeset 9086:7812d2641010
entered into RCS
author | Paul Reilly <pmr@pajato.com> |
---|---|
date | Sun, 25 Sep 1994 17:18:58 +0000 |
parents | c3b059b240c7 |
children | e3c272c7f4d2 |
files | lwlib/xlwmenu.c |
diffstat | 1 files changed, 20 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lwlib/xlwmenu.c Sun Sep 25 16:37:30 1994 +0000 +++ b/lwlib/xlwmenu.c Sun Sep 25 17:18:58 1994 +0000 @@ -1289,7 +1289,7 @@ 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_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 @@ && 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 @@ handle_motion_event (mw, (XMotionEvent*)event); } + +void GetWindowAttributes (w) + Widget w; +{ + XWindowAttributes attrs; + + XGetWindowAttributes (XtDisplay (w), + XtWindow (w), + &attrs); +}