Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ client_layer_translator(client_t *c)
/* first deal with user set attributes */
if(c->ontop)
return WINDOW_LAYER_ONTOP;
/* Fullscreen windows only get their own layer when they have the focus */
else if(c->fullscreen && globalconf.focus.client == c)
/* Fullscreen windows only get their own layer when they are the most
* recently raised client. Using the stack position (instead of focus)
* ensures that focus changes alone (e.g. sloppy / mouse-enter focus)
* do not alter the stacking order of fullscreen windows. */
else if(c->fullscreen && globalconf.stack.len
&& globalconf.stack.tab[globalconf.stack.len-1] == c)
return WINDOW_LAYER_FULLSCREEN;
else if(c->above)
return WINDOW_LAYER_ABOVE;
Expand Down
Loading