1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +01:00

fixed problem with motion event compression

This commit is contained in:
kojima
2000-07-16 01:08:13 +00:00
parent ee0fa6ec7d
commit ce7db48e25
2 changed files with 56 additions and 13 deletions

View File

@@ -404,6 +404,8 @@ itemSelectObserver(void *self, WMNotification *notif)
if (menu->selectedItem && !menu->selectedItem->submenu) {
deselectItem(menu);
if (menu->flags.isEditing)
stopEditItem(menu, False);
}
}
@@ -1201,6 +1203,8 @@ dragMenu(WEditMenu *menu)
break;
case MotionNotify:
while (XCheckMaskEvent(scr->display, ButtonMotionMask, &ev)) ;
WMMoveWidget(menu, ev.xmotion.x_root - dx,
ev.xmotion.y_root - dy);
break;
@@ -1320,6 +1324,8 @@ dragItem(WEditMenu *menu, WEditMenuItem *item)
switch (ev.type) {
case MotionNotify:
while (XCheckMaskEvent(dpy, ButtonMotionMask, &ev)) ;
XQueryPointer(dpy, win, &blaw, &blaw, &blai, &blai, &x, &y, &blau);
dmenu = findMenuInWindow(dpy, win, x, y);