[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 45a1bb0efb: ; * src/xterm.c (x_dnd_compute_toplevels): Use right
From: |
Po Lu |
Subject: |
master 45a1bb0efb: ; * src/xterm.c (x_dnd_compute_toplevels): Use right enum on XCB. |
Date: |
Sun, 27 Mar 2022 20:40:10 -0400 (EDT) |
branch: master
commit 45a1bb0efbdd827e91cf80d0c93f60c311e85255
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
; * src/xterm.c (x_dnd_compute_toplevels): Use right enum on XCB.
---
src/xterm.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index a77b90a4b5..fbd6fadf1d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1108,6 +1108,7 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
tem->y = dest_y;
tem->width = attrs.width + attrs.border_width;
tem->height = attrs.height + attrs.border_width;
+ tem->mapped_p = (attrs.map_state != IsUnmapped);
#else
tem->x = (coordinates_reply->dst_x
- geometry_reply->border_width);
@@ -1117,8 +1118,8 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
+ geometry_reply->border_width);
tem->height = (geometry_reply->height
+ geometry_reply->border_width);
+ tem->mapped_p = (attrs.map_state != XCB_MAP_STATE_UNMAPPED);
#endif
- tem->mapped_p = (attrs.map_state != IsUnmapped);
tem->next = x_dnd_toplevels;
tem->previous_event_mask = attrs.your_event_mask;
tem->wm_state = wmstate[0];
@@ -1311,8 +1312,8 @@ x_dnd_compute_toplevels (struct x_display_info *dpyinfo)
&& dpyinfo->xshape_minor >= 1)))
{
input_rect_reply = xcb_shape_get_rectangles_reply
(dpyinfo->xcb_connection,
-
input_rect_cookies[i],
- &error);
+
input_rect_cookies[i],
+ &error);
if (input_rect_reply)
free (input_rect_reply);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 45a1bb0efb: ; * src/xterm.c (x_dnd_compute_toplevels): Use right enum on XCB.,
Po Lu <=