… | |
… | |
1311 | dDisp; |
1311 | dDisp; |
1312 | |
1312 | |
1313 | SET_R (this); |
1313 | SET_R (this); |
1314 | SET_LOCALE (locale); |
1314 | SET_LOCALE (locale); |
1315 | |
1315 | |
|
|
1316 | if (ev.xany.window == vt |
|
|
1317 | && HOOK_INVOKE ((this, HOOK_X_EVENT, DT_XEVENT, &ev, DT_END))) |
|
|
1318 | return; |
|
|
1319 | |
1316 | Window unused_root, unused_child; |
1320 | Window unused_root, unused_child; |
1317 | int unused_root_x, unused_root_y; |
1321 | int unused_root_x, unused_root_y; |
1318 | unsigned int unused_mask; |
1322 | unsigned int unused_mask; |
1319 | |
1323 | |
1320 | switch (ev.type) |
1324 | switch (ev.type) |
… | |
… | |
1600 | #endif |
1604 | #endif |
1601 | } |
1605 | } |
1602 | break; |
1606 | break; |
1603 | |
1607 | |
1604 | case MotionNotify: |
1608 | case MotionNotify: |
|
|
1609 | printf ("motion notify\n");//D |
1605 | #ifdef POINTER_BLANK |
1610 | #ifdef POINTER_BLANK |
1606 | if (hidden_pointer) |
1611 | if (hidden_pointer) |
1607 | pointer_unblank (); |
1612 | pointer_unblank (); |
1608 | #endif |
1613 | #endif |
1609 | #if MENUBAR |
1614 | #if MENUBAR |
… | |
… | |
1920 | #else |
1925 | #else |
1921 | selection.rect = false; |
1926 | selection.rect = false; |
1922 | #endif |
1927 | #endif |
1923 | |
1928 | |
1924 | /* allow shift+left click to extend selection */ |
1929 | /* allow shift+left click to extend selection */ |
1925 | if (ev.state & ShiftMask && ! (priv_modes & PrivMode_mouse_report)) |
1930 | if (ev.state & ShiftMask && !(priv_modes & PrivMode_mouse_report)) |
1926 | { |
1931 | { |
1927 | if (MEvent.button == Button1 && clickintime) |
1932 | if (MEvent.button == Button1 && clickintime) |
1928 | selection_rotate (ev.x, ev.y); |
1933 | selection_rotate (ev.x, ev.y); |
1929 | else |
1934 | else |
1930 | selection_extend (ev.x, ev.y, 1); |
1935 | selection_extend (ev.x, ev.y, 1); |