aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-03-28 08:39:37 +0800
committerPo Lu2022-03-28 08:39:37 +0800
commit45a1bb0efbdd827e91cf80d0c93f60c311e85255 (patch)
tree829ea628d0173e1727fe7d5ded632c80fd111f28 /src
parentbe21c95842f37e164606a6b392f5396d91506f61 (diff)
downloademacs-45a1bb0efbdd827e91cf80d0c93f60c311e85255.tar.gz
emacs-45a1bb0efbdd827e91cf80d0c93f60c311e85255.zip
; * src/xterm.c (x_dnd_compute_toplevels): Use right enum on XCB.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c
index a77b90a4b5c..fbd6fadf1d5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1108,6 +1108,7 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
1108 tem->y = dest_y; 1108 tem->y = dest_y;
1109 tem->width = attrs.width + attrs.border_width; 1109 tem->width = attrs.width + attrs.border_width;
1110 tem->height = attrs.height + attrs.border_width; 1110 tem->height = attrs.height + attrs.border_width;
1111 tem->mapped_p = (attrs.map_state != IsUnmapped);
1111#else 1112#else
1112 tem->x = (coordinates_reply->dst_x 1113 tem->x = (coordinates_reply->dst_x
1113 - geometry_reply->border_width); 1114 - geometry_reply->border_width);
@@ -1117,8 +1118,8 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
1117 + geometry_reply->border_width); 1118 + geometry_reply->border_width);
1118 tem->height = (geometry_reply->height 1119 tem->height = (geometry_reply->height
1119 + geometry_reply->border_width); 1120 + geometry_reply->border_width);
1121 tem->mapped_p = (attrs.map_state != XCB_MAP_STATE_UNMAPPED);
1120#endif 1122#endif
1121 tem->mapped_p = (attrs.map_state != IsUnmapped);
1122 tem->next = x_dnd_toplevels; 1123 tem->next = x_dnd_toplevels;
1123 tem->previous_event_mask = attrs.your_event_mask; 1124 tem->previous_event_mask = attrs.your_event_mask;
1124 tem->wm_state = wmstate[0]; 1125 tem->wm_state = wmstate[0];
@@ -1311,8 +1312,8 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
1311 && dpyinfo->xshape_minor >= 1))) 1312 && dpyinfo->xshape_minor >= 1)))
1312 { 1313 {
1313 input_rect_reply = xcb_shape_get_rectangles_reply (dpyinfo->xcb_connection, 1314 input_rect_reply = xcb_shape_get_rectangles_reply (dpyinfo->xcb_connection,
1314 input_rect_cookies[i], 1315 input_rect_cookies[i],
1315 &error); 1316 &error);
1316 1317
1317 if (input_rect_reply) 1318 if (input_rect_reply)
1318 free (input_rect_reply); 1319 free (input_rect_reply);