mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Focus a monitor with an empty focused desktop
This commit is contained in:
parent
daa358b3c4
commit
2b92f05e34
1 changed files with 5 additions and 3 deletions
8
events.c
8
events.c
|
@ -322,9 +322,6 @@ void grab_pointer(pointer_action_t pac)
|
|||
|
||||
query_pointer(&win, &pos);
|
||||
|
||||
if (win == XCB_NONE)
|
||||
return;
|
||||
|
||||
coordinates_t loc;
|
||||
if (locate_window(win, &loc)) {
|
||||
client_t *c = NULL;
|
||||
|
@ -443,6 +440,11 @@ void grab_pointer(pointer_action_t pac)
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
if (pac == ACTION_FOCUS) {
|
||||
monitor_t *m = monitor_from_point(pos);
|
||||
if (m != NULL)
|
||||
focus_node(m, m->desk, m->desk->focus);
|
||||
}
|
||||
frozen_pointer->action = ACTION_NONE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue