aboutsummaryrefslogtreecommitdiff
path: root/sway/workspace.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-07-17 12:57:40 -0400
committerDrew DeVault <sir@cmpwn.com>2016-07-17 12:57:40 -0400
commitff363aa7f7ace778180dd9cc6687a991b5106b19 (patch)
tree385b41ae03b343474bf0b69fe940e93f672975c7 /sway/workspace.c
parent6d971af5c3ceae870c424325ca06fc635703bb29 (diff)
Fix bug with views behind backgrounds on ws switch
Diffstat (limited to 'sway/workspace.c')
-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 @@
#include <strings.h>
#include <sys/types.h>
#include "ipc-server.h"
+#include "extensions.h"
#include "workspace.h"
#include "layout.h"
#include "list.h"
@@ -308,6 +309,10 @@ bool workspace_switch(swayc_t *workspace) {
}
swayc_t *output = swayc_parent_by_type(workspace, C_OUTPUT);
arrange_windows(output, -1, -1);
+ for (int i = 0; i < desktop_shell.backgrounds->length; ++i) {
+ struct background_config *bg = desktop_shell.backgrounds->items[i];
+ wlc_view_send_to_back(bg->handle);
+ }
return true;
}