… | |
… | |
1251 | int x, y; |
1251 | int x, y; |
1252 | int code = 32; |
1252 | int code = 32; |
1253 | |
1253 | |
1254 | x = Pixel2Col (ev.x); |
1254 | x = Pixel2Col (ev.x); |
1255 | y = Pixel2Row (ev.y); |
1255 | y = Pixel2Row (ev.y); |
1256 | if (ev.type == MotionNotify) { |
1256 | if (ev.type == MotionNotify) |
|
|
1257 | { |
1257 | if (x == mouse_row && y == mouse_col) |
1258 | if (x == mouse_row && y == mouse_col) |
1258 | return; |
1259 | return; |
1259 | mouse_row = x; |
1260 | mouse_row = x; |
1260 | mouse_col = y; |
1261 | mouse_col = y; |
1261 | code += 32; |
1262 | code += 32; |
1262 | } |
1263 | } |
1263 | |
1264 | |
1264 | if (MEvent.button == AnyButton) |
1265 | if (MEvent.button == AnyButton) |
1265 | button_number = 3; |
1266 | button_number = 3; |
1266 | else |
1267 | else |
1267 | { |
1268 | { |
… | |
… | |
3697 | case 1001: |
3698 | case 1001: |
3698 | break; /* X11 mouse highlighting */ |
3699 | break; /* X11 mouse highlighting */ |
3699 | #endif |
3700 | #endif |
3700 | case 1002: |
3701 | case 1002: |
3701 | case 1003: |
3702 | case 1003: |
3702 | if (state) { |
3703 | if (state) |
|
|
3704 | { |
3703 | priv_modes &= ~(PrivMode_MouseX10|PrivMode_MouseX11); |
3705 | priv_modes &= ~(PrivMode_MouseX10|PrivMode_MouseX11); |
3704 | priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent; |
3706 | priv_modes &= arg[i] == 1003 ? ~PrivMode_MouseBtnEvent : ~PrivMode_MouseAnyEvent; |
3705 | vt_emask_mouse = PointerMotionMask; |
3707 | vt_emask_mouse = PointerMotionMask; |
|
|
3708 | } |
3706 | } else |
3709 | else |
3707 | vt_emask_mouse = NoEventMask; |
3710 | vt_emask_mouse = NoEventMask; |
3708 | vt_select_input (); |
3711 | vt_select_input (); |
3709 | break; |
3712 | break; |
3710 | case 1010: /* scroll to bottom on TTY output inhibit */ |
3713 | case 1010: /* scroll to bottom on TTY output inhibit */ |
3711 | set_option (Opt_scrollTtyOutput, !state); |
3714 | set_option (Opt_scrollTtyOutput, !state); |