Changeset 223
- Timestamp:
- 06/27/07 13:50:55 (1 year ago)
- Files:
-
- trunk/src/main-x11.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main-x11.c
r214 r223 1630 1630 term_data *td = (term_data*)(Term->data); 1631 1631 1632 (*x) = (ox - Infowin->ox - 13 * Infofnt->wid) / td->tile_wid;1633 (*y) = (oy - Infowin->oy) / td->tile_hgt - 1;1632 (*x) = (ox - Infowin->ox) / td->tile_wid; 1633 (*y) = (oy - Infowin->oy) / td->tile_hgt; 1634 1634 } 1635 1635 … … 1695 1695 case ButtonPress: 1696 1696 { 1697 bool press = (xev->type == ButtonPress); 1698 1697 1699 int z = 0; 1698 1700 … … 1711 1713 /* The co-ordinates are only used in Angband format. */ 1712 1714 pixel_to_square(&x, &y, x, y); 1713 Term_mousepress(x, y, 0);1715 if (press) Term_mousepress(x, y, z); 1714 1716 1715 1717 break; … … 2441 2443 2442 2444 /* Ask for certain events */ 2443 Infowin_set_mask(ExposureMask | StructureNotifyMask | KeyPressMask); 2445 Infowin_set_mask(ExposureMask | StructureNotifyMask | KeyPressMask 2446 | ButtonPressMask); 2444 2447 2445 2448 /* Set the window name */ … … 2964 2967 #endif /* USE_X11 */ 2965 2968 2969
