… | |
… | |
1530 | while (XCheckTypedWindowEvent (dpy, ev.xany.window, Expose, &unused_event)) |
1530 | while (XCheckTypedWindowEvent (dpy, ev.xany.window, Expose, &unused_event)) |
1531 | ; |
1531 | ; |
1532 | while (XCheckTypedWindowEvent (dpy, ev.xany.window, GraphicsExpose, &unused_event)) |
1532 | while (XCheckTypedWindowEvent (dpy, ev.xany.window, GraphicsExpose, &unused_event)) |
1533 | ; |
1533 | ; |
1534 | |
1534 | |
1535 | if (isScrollbarWindow (ev.xany.window)) |
1535 | if (scrollBar.state && ev.xany.window == scrollBar.win) |
1536 | { |
1536 | { |
1537 | scrollBar.setIdle (); |
1537 | scrollBar.setIdle (); |
1538 | scrollbar_show (0); |
1538 | scrollbar_show (0); |
1539 | } |
1539 | } |
1540 | } |
1540 | } |
… | |
… | |
1630 | #ifdef MOUSE_THRESHOLD |
1630 | #ifdef MOUSE_THRESHOLD |
1631 | } |
1631 | } |
1632 | #endif |
1632 | #endif |
1633 | } |
1633 | } |
1634 | } |
1634 | } |
1635 | else if (isScrollbarWindow (ev.xany.window) && scrollbar_isMotion ()) |
1635 | else if (scrollbar_isMotion () && ev.xany.window == scrollBar.win) |
1636 | { |
1636 | { |
1637 | while (XCheckTypedWindowEvent (dpy, scrollBar.win, |
1637 | while (XCheckTypedWindowEvent (dpy, scrollBar.win, |
1638 | MotionNotify, &ev)) |
1638 | MotionNotify, &ev)) |
1639 | ; |
1639 | ; |
1640 | |
1640 | |
… | |
… | |
1924 | } |
1924 | } |
1925 | |
1925 | |
1926 | /* |
1926 | /* |
1927 | * Scrollbar window processing of button press |
1927 | * Scrollbar window processing of button press |
1928 | */ |
1928 | */ |
1929 | if (isScrollbarWindow (ev.window)) |
1929 | if (scrollBar.state && ev.window == scrollBar.win) |
1930 | { |
1930 | { |
1931 | scrollBar.setIdle (); |
1931 | scrollBar.setIdle (); |
1932 | /* |
1932 | /* |
1933 | * Rxvt-style scrollbar: |
1933 | * Rxvt-style scrollbar: |
1934 | * move up if mouse is above slider |
1934 | * move up if mouse is above slider |