Make fullscreen stacking respect EWMH

Fullscreen windows should only get their own layer when they have the input
focus. When they are unfocused they should be treated normally (FS#560).

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-07-23 12:22:03 +02:00
parent 5bfe0f69d1
commit 634520a70a
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,7 @@
*/ */
#include "ewmh.h" #include "ewmh.h"
#include "screen.h"
#include "stack.h" #include "stack.h"
#include "objects/client.h" #include "objects/client.h"
#include "objects/wibox.h" #include "objects/wibox.h"
@ -116,7 +117,8 @@ client_layer_translator(client_t *c)
/* first deal with user set attributes */ /* first deal with user set attributes */
if(c->ontop) if(c->ontop)
return WINDOW_LAYER_ONTOP; return WINDOW_LAYER_ONTOP;
else if(c->fullscreen) /* Fullscreen windows only get their own layer when they have the focus */
else if(c->fullscreen && globalconf.screen_focus->client_focus == c)
return WINDOW_LAYER_FULLSCREEN; return WINDOW_LAYER_FULLSCREEN;
else if(c->above) else if(c->above)
return WINDOW_LAYER_ABOVE; return WINDOW_LAYER_ABOVE;