Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
xwayland: log unhandled NET_WM_STATE property changes
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion authored and ammen99 committed Nov 3, 2020
1 parent 1fdaaf6 commit be1e764
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xwayland/xwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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
Expand Down

0 comments on commit be1e764

Please sign in to comment.