… | |
… | |
84 | XK_Right, 0x2192, |
84 | XK_Right, 0x2192, |
85 | XK_KP_Right, 0x2192, |
85 | XK_KP_Right, 0x2192, |
86 | XK_Down, 0x2193, |
86 | XK_Down, 0x2193, |
87 | XK_KP_Down, 0x2193, |
87 | XK_KP_Down, 0x2193, |
88 | XK_Linefeed, 0x21b4, |
88 | XK_Linefeed, 0x21b4, |
89 | XK_Return, 0x21b5, |
|
|
90 | XK_KP_Enter, 0x21b5, |
|
|
91 | |
89 | |
92 | XK_Prior, 0x21de, |
90 | XK_Prior, 0x21de, |
93 | XK_Next, 0x21df, |
91 | XK_Next, 0x21df, |
94 | XK_Tab, 0x21e5, |
92 | XK_Tab, 0x21e5, |
95 | XK_ISO_Left_Tab, 0x21e6, |
93 | XK_ISO_Left_Tab, 0x21e6, |
… | |
… | |
110 | XK_Begin, 0x2320, |
108 | XK_Begin, 0x2320, |
111 | XK_Delete, 0x2326, |
109 | XK_Delete, 0x2326, |
112 | XK_Clear, 0x2327, |
110 | XK_Clear, 0x2327, |
113 | XK_BackSpace, 0x232b, |
111 | XK_BackSpace, 0x232b, |
114 | XK_Insert, 0x2380, |
112 | XK_Insert, 0x2380, |
|
|
113 | XK_KP_Enter, 0x2386, |
|
|
114 | XK_Alt_L, 0x2387, |
|
|
115 | XK_Alt_R, 0x2387, |
115 | XK_Control_L, 0x2388, |
116 | XK_Control_L, 0x2388, |
116 | XK_Control_R, 0x2388, |
117 | XK_Control_R, 0x2388, |
117 | XK_Pause, 0x2389, |
118 | XK_Pause, 0x2389, |
118 | XK_Break, 0x238a, |
119 | XK_Break, 0x238a, |
119 | XK_Escape, 0x238b, |
120 | XK_Escape, 0x238b, |
120 | XK_Undo, 0x238c, |
121 | XK_Undo, 0x238c, |
121 | XK_Print, 0x2399, |
122 | XK_Print, 0x2399, |
|
|
123 | XK_Return, 0x23ce, |
122 | |
124 | |
123 | XK_space, 0x2423, |
125 | XK_space, 0x2423, |
124 | |
126 | |
125 | #ifdef XK_KP_Begin |
127 | #ifdef XK_KP_Begin |
126 | XK_KP_Prior, 0x21de, |
128 | XK_KP_Prior, 0x21de, |
… | |
… | |
1281 | { |
1283 | { |
1282 | int button_number, state = 0; |
1284 | int button_number, state = 0; |
1283 | int x, y; |
1285 | int x, y; |
1284 | bool release = ev.type == ButtonRelease; |
1286 | bool release = ev.type == ButtonRelease; |
1285 | |
1287 | |
1286 | x = Pixel2Col (ev.x) + 1; |
1288 | x = 1 + clamp (Pixel2Col (ev.x), 0, ncol - 1); |
1287 | y = Pixel2Row (ev.y) + 1; |
1289 | y = 1 + clamp (Pixel2Row (ev.y), 0, nrow - 1); |
1288 | |
1290 | |
1289 | if (ev.type == MotionNotify) |
1291 | if (ev.type == MotionNotify) |
1290 | { |
1292 | { |
1291 | if (x == mouse_row && y == mouse_col) |
1293 | if (x == mouse_row && y == mouse_col) |
1292 | return; |
1294 | return; |