… | |
… | |
1302 | rxvt_term::mouse_report (XButtonEvent &ev) |
1302 | rxvt_term::mouse_report (XButtonEvent &ev) |
1303 | { |
1303 | { |
1304 | int button_number, key_state = 0; |
1304 | int button_number, key_state = 0; |
1305 | int x, y; |
1305 | int x, y; |
1306 | |
1306 | |
1307 | x = ev.x; |
1307 | x = Pixel2Col (ev.x); |
1308 | y = ev.y; |
1308 | y = Pixel2Row (ev.y); |
1309 | pixel_position (&x, &y); |
|
|
1310 | |
1309 | |
1311 | if (MEvent.button == AnyButton) |
1310 | if (MEvent.button == AnyButton) |
1312 | button_number = 3; |
1311 | button_number = 3; |
1313 | else |
1312 | else |
1314 | { |
1313 | { |