aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-03 16:48:01 +0100
committerIlia Bozhinov <ammen99@gmail.com>2020-11-03 18:36:30 +0200
commitbe1e7647c3250d67041947d77350488ae00bc3e3 (patch)
treed3e3b16654d096d5a81fa56efd2b2d079b2be7c1 /xwayland
parent1fdaaf697a040c0ec7be661ea7d8a84321dbefb7 (diff)
xwayland: log unhandled NET_WM_STATE property changes
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 61d9ad7d..fefba7fc 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -1187,7 +1187,7 @@ static void xwm_handle_net_wm_state_message(struct wlr_xwm *xwm,
uint32_t action = client_message->data.data32[0];
for (size_t i = 0; i < 2; ++i) {
- uint32_t property = client_message->data.data32[1 + i];
+ xcb_atom_t property = client_message->data.data32[1 + i];
if (property == xwm->atoms[NET_WM_STATE_MODAL] &&
update_state(action, &xsurface->modal)) {
@@ -1204,6 +1204,11 @@ static void xwm_handle_net_wm_state_message(struct wlr_xwm *xwm,
} else if (property == xwm->atoms[NET_WM_STATE_HIDDEN] &&
update_state(action, &xsurface->minimized)) {
xsurface_set_net_wm_state(xsurface);
+ } else if (property != XCB_ATOM_NONE) {
+ char *prop_name = xwm_get_atom_name(xwm, property);
+ wlr_log(WLR_DEBUG, "Unhandled NET_WM_STATE property change "
+ "%"PRIu32" (%s)", property, prop_name ? prop_name : "(null)");
+ free(prop_name);
}
}
// client_message->data.data32[3] is the source indication