commit 763e9c30e3406ff7d905f11947de266e10a05013 parent e3a78f835bfbd0d5f5ae4da4102703d757c1d5a4 Author: Kebigon <git@kebigon.xyz> Date: Tue, 4 Aug 2020 20:09:33 +0900 Fix an issue where after switching workspace the button event were not processed correctly by the client Diffstat:
| M | kbgwm.c | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/kbgwm.c b/kbgwm.c @@ -139,6 +139,14 @@ void debug_print_event(xcb_generic_event_t* event) debug_print_globals(); break; } + case XCB_MAP_NOTIFY: + { + xcb_map_notify_event_t* event2 = (xcb_map_notify_event_t*) event; + printf("=======[ event: XCB_MAP_NOTIFY ]=======\n"); + printf("window=%d\n", event2->window); + debug_print_globals(); + break; + } case XCB_MAP_REQUEST: { xcb_map_request_event_t* event2 = (xcb_map_request_event_t*) event; @@ -845,6 +853,9 @@ void workspace_set(uint_fast8_t new_workspace) xcb_flush(c); current_workspace = new_workspace; + if (workspaces[current_workspace] != NULL) + focus_apply(); + printf("workspace_set: done\n"); }