return;
}
- /* TODO: Move this to extern get_ws_for_output() */
- TAILQ_FOREACH (cur_ws, walk->workspaces, tailq) {
- if (cur_ws->visible) {
- break;
- }
- }
-
- if (cur_ws == NULL) {
- DLOG("No Workspace active?\n");
- return;
- }
-
int32_t x = event->event_x >= 0 ? event->event_x : 0;
int32_t original_x = x;
x = original_x;
}
+ /* TODO: Move this to extern get_ws_for_output() */
+ TAILQ_FOREACH (cur_ws, walk->workspaces, tailq) {
+ if (cur_ws->visible) {
+ break;
+ }
+ }
+
+ if (cur_ws == NULL) {
+ DLOG("No Workspace active?\n");
+ return;
+ }
+
switch (event->detail) {
case 4:
/* Mouse wheel up. We select the previous ws, if any.
* BUTTON_PRESS, to handle clicks on the workspace buttons
* */
values[2] = XCB_EVENT_MASK_EXPOSURE |
- XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT;
- if (!config.disable_ws) {
- values[2] |= XCB_EVENT_MASK_BUTTON_PRESS;
- }
+ XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT |
+ XCB_EVENT_MASK_BUTTON_PRESS;
xcb_void_cookie_t win_cookie = xcb_create_window_checked(xcb_connection,
root_screen->root_depth,
walk->bar,