From b1d4bbdb54bd4525692745bf5267765adcf8cc3e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 2 Feb 2008 09:01:56 -0500 Subject: make fullscreen windows more xinerama and multi-screen aware instead of calling it every time a window loses focus, it is only called when a window gains focus. then, check fullscreen layered windows, if they should be moved to a lower layer. when moving a window between monitors, also check its layer and that of any fullscreen windows. let a window stay in the fullscreen layer even when it is not focused, if it is on a non-visible desktop, or if it is on a different monitor from the focused window, or if nothing else is focused --- openbox/event.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index 535e9f14..9362c80d 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -519,7 +519,6 @@ static void event_process(const XEvent *ec, gpointer data) window with RevertToParent focus */ frame_adjust_focus(client->frame, FALSE); /* focus_set_client(NULL) has already been called */ - client_calc_layer(client); } else if (e->xfocus.detail == NotifyPointerRoot || e->xfocus.detail == NotifyDetailNone || @@ -629,7 +628,6 @@ static void event_process(const XEvent *ec, gpointer data) frame_adjust_focus(client->frame, FALSE); /* focus_set_client(NULL) has already been called in this section or by focus_fallback */ - client_calc_layer(client); } } else if (client) -- cgit v1.2.3