all repos — openbox @ 6cb4d8bca80cd5338ad03ae02a1b754a4fba41c9

openbox fork - make it a bit more like ryudo

skip events more smarter
Dana Jansens danakj@orodu.net
commit

6cb4d8bca80cd5338ad03ae02a1b754a4fba41c9

parent

4f427471b862f2f547981878b1d088ac52929936

1 files changed, 9 insertions(+), 7 deletions(-)

jump to
M plugins/focus.cplugins/focus.c

@@ -42,7 +42,7 @@ GList *it;

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,12 +61,14 @@ g_message("skip");

++skip_enter; }*/ - /* 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, - c->area.width / 2, c->area.height / 2); - XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0, - c->area.width / 2, c->area.height / 2); + 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, + c->area.width / 2, c->area.height / 2); + XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0, + c->area.width / 2, c->area.height / 2); + } } break; }