… | |
… | |
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 | |
|
|
1320 | // for XQueryPointer |
1316 | Window unused_root, unused_child; |
1321 | Window unused_root, unused_child; |
1317 | int unused_root_x, unused_root_y; |
1322 | int unused_root_x, unused_root_y; |
1318 | unsigned int unused_mask; |
1323 | unsigned int unused_mask; |
1319 | |
1324 | |
1320 | switch (ev.type) |
1325 | switch (ev.type) |
… | |
… | |
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); |