skip events more smarter
This commit is contained in:
parent
4f427471b8
commit
6cb4d8bca8
1 changed files with 9 additions and 7 deletions
|
@ -42,7 +42,7 @@ static void focus_fallback(gboolean switching_desks)
|
|||
|
||||
for (it = focus_order[screen_desktop]; it != NULL; it = it->next)
|
||||
if (client_normal(it->data) && client_focus(it->data)) {
|
||||
if (switching_desks && warp_on_desk_switch) {
|
||||
if (switching_desks) {
|
||||
XEvent e;
|
||||
Client *c = it->data;
|
||||
|
||||
|
@ -61,6 +61,7 @@ static void focus_fallback(gboolean switching_desks)
|
|||
++skip_enter;
|
||||
}*/
|
||||
|
||||
if (warp_on_desk_switch) {
|
||||
/* I have to do this warp twice! Otherwise windows dont get
|
||||
Enter/Leave events when i warp on a desktop switch! */
|
||||
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
||||
|
@ -68,6 +69,7 @@ static void focus_fallback(gboolean switching_desks)
|
|||
XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0,
|
||||
c->area.width / 2, c->area.height / 2);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue