ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/command.C
(Generate patch)

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.601 by sf-exg, Sat May 6 06:47:29 2023 UTC vs.
Revision 1.602 by sf-exg, Sat May 6 08:01:35 2023 UTC

1281{ 1281{
1282 int button_number, state = 0; 1282 int button_number, state = 0;
1283 int x, y; 1283 int x, y;
1284 bool release = ev.type == ButtonRelease; 1284 bool release = ev.type == ButtonRelease;
1285 1285
1286 x = Pixel2Col (ev.x) + 1; 1286 x = 1 + clamp (Pixel2Col (ev.x), 0, ncol - 1);
1287 y = Pixel2Row (ev.y) + 1; 1287 y = 1 + clamp (Pixel2Row (ev.y), 0, nrow - 1);
1288 1288
1289 if (ev.type == MotionNotify) 1289 if (ev.type == MotionNotify)
1290 { 1290 {
1291 if (x == mouse_row && y == mouse_col) 1291 if (x == mouse_row && y == mouse_col)
1292 return; 1292 return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines