… | |
… | |
1612 | case MotionNotify: |
1612 | case MotionNotify: |
1613 | #ifdef POINTER_BLANK |
1613 | #ifdef POINTER_BLANK |
1614 | if (hidden_pointer) |
1614 | if (hidden_pointer) |
1615 | pointer_unblank (); |
1615 | pointer_unblank (); |
1616 | #endif |
1616 | #endif |
|
|
1617 | if (!bypass_keystate |
1617 | if ((priv_modes & PrivMode_MouseBtnEvent && ev.xbutton.state & (Button1Mask|Button2Mask|Button3Mask)) |
1618 | && ((priv_modes & PrivMode_MouseBtnEvent && ev.xbutton.state & (Button1Mask|Button2Mask|Button3Mask)) |
1618 | || priv_modes & PrivMode_MouseAnyEvent) |
1619 | || priv_modes & PrivMode_MouseAnyEvent)) |
1619 | mouse_report (ev.xbutton); |
1620 | mouse_report (ev.xbutton); |
1620 | if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate) |
1621 | if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate) |
1621 | break; |
1622 | break; |
1622 | |
1623 | |
1623 | if (ev.xany.window == vt) |
1624 | if (ev.xany.window == vt) |
… | |
… | |
1635 | &unused_root_x, &unused_root_y, |
1636 | &unused_root_x, &unused_root_y, |
1636 | &ev.xbutton.x, &ev.xbutton.y, |
1637 | &ev.xbutton.x, &ev.xbutton.y, |
1637 | &ev.xbutton.state); |
1638 | &ev.xbutton.state); |
1638 | #ifdef MOUSE_THRESHOLD |
1639 | #ifdef MOUSE_THRESHOLD |
1639 | /* deal with a `jumpy' mouse */ |
1640 | /* deal with a `jumpy' mouse */ |
1640 | if ((ev.xmotion.time - MEvent.time) > MOUSE_THRESHOLD) |
1641 | if (ev.xmotion.time - MEvent.time > MOUSE_THRESHOLD) |
|
|
1642 | #endif |
1641 | { |
1643 | { |
1642 | #endif |
|
|
1643 | #if ISO_14755 |
1644 | #if ISO_14755 |
1644 | // 5.4 |
1645 | // 5.4 |
1645 | if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54)) |
1646 | if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54)) |
1646 | { |
1647 | { |
1647 | iso14755_54 (ev.xbutton.x, ev.xbutton.y); |
1648 | iso14755_54 (ev.xbutton.x, ev.xbutton.y); |
… | |
… | |
1696 | * shouldn't be scrolling |
1697 | * shouldn't be scrolling |
1697 | */ |
1698 | */ |
1698 | sel_scroll_ev.stop(); |
1699 | sel_scroll_ev.stop(); |
1699 | } |
1700 | } |
1700 | #endif |
1701 | #endif |
1701 | #ifdef MOUSE_THRESHOLD |
|
|
1702 | } |
1702 | } |
1703 | #endif |
|
|
1704 | } |
1703 | } |
1705 | } |
1704 | } |
1706 | else if (scrollBar.state == SB_STATE_MOTION && ev.xany.window == scrollBar.win) |
1705 | else if (scrollBar.state == SB_STATE_MOTION && ev.xany.window == scrollBar.win) |
1707 | { |
1706 | { |
1708 | while (XCheckTypedWindowEvent (dpy, scrollBar.win, |
1707 | while (XCheckTypedWindowEvent (dpy, scrollBar.win, |