summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-17 12:57:40 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-07-17 12:57:40 -0400
commitff363aa7f7ace778180dd9cc6687a991b5106b19 (patch)
tree385b41ae03b343474bf0b69fe940e93f672975c7 /sway
parentTurn swaybg into a shell surface (diff)
downloadsway-ff363aa7f7ace778180dd9cc6687a991b5106b19.tar.gz
sway-ff363aa7f7ace778180dd9cc6687a991b5106b19.tar.zst
sway-ff363aa7f7ace778180dd9cc6687a991b5106b19.zip
Fix bug with views behind backgrounds on ws switch
Diffstat (limited to 'sway')
-rw-r--r--sway/workspace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index 5319aec4..3ac6626c 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -7,6 +7,7 @@
7#include <strings.h> 7#include <strings.h>
8#include <sys/types.h> 8#include <sys/types.h>
9#include "ipc-server.h" 9#include "ipc-server.h"
10#include "extensions.h"
10#include "workspace.h" 11#include "workspace.h"
11#include "layout.h" 12#include "layout.h"
12#include "list.h" 13#include "list.h"
@@ -308,6 +309,10 @@ bool workspace_switch(swayc_t *workspace) {
308 } 309 }
309 swayc_t *output = swayc_parent_by_type(workspace, C_OUTPUT); 310 swayc_t *output = swayc_parent_by_type(workspace, C_OUTPUT);
310 arrange_windows(output, -1, -1); 311 arrange_windows(output, -1, -1);
312 for (int i = 0; i < desktop_shell.backgrounds->length; ++i) {
313 struct background_config *bg = desktop_shell.backgrounds->items[i];
314 wlc_view_send_to_back(bg->handle);
315 }
311 return true; 316 return true;
312} 317}
313 318