aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-18 13:06:10 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-04-18 13:06:10 +1000
commit8d06b222f048e5a27c4c5b0bc46ceaab7639502f (patch)
treef75d4225aef33dadae0a8d60ab98cdef343ccb62 /sway/desktop
parentMore fullscreen fixes. (diff)
downloadsway-8d06b222f048e5a27c4c5b0bc46ceaab7639502f.tar.gz
sway-8d06b222f048e5a27c4c5b0bc46ceaab7639502f.tar.zst
sway-8d06b222f048e5a27c4c5b0bc46ceaab7639502f.zip
Fullscreen rendering and input fixes.
* Render background when using fullscreen, because transparency. * Check that fullscreen surface allows input. * Don't look for surfaces in top layer if there's a fullscreen view.
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index a5f2f71f..299b57f1 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -280,11 +280,11 @@ static void render_output(struct sway_output *output, struct timespec *when,
280 280
281 struct sway_container *workspace = output_get_active_workspace(output); 281 struct sway_container *workspace = output_get_active_workspace(output);
282 282
283 render_layer(output, &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND]);
284
283 if (workspace->sway_workspace->fullscreen) { 285 if (workspace->sway_workspace->fullscreen) {
284 render_container(output, workspace->sway_workspace->fullscreen->swayc); 286 render_container(output, workspace->sway_workspace->fullscreen->swayc);
285 } else { 287 } else {
286 render_layer(output,
287 &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND]);
288 render_layer(output, &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM]); 288 render_layer(output, &output->layers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM]);
289 289
290 render_container(output, workspace); 290 render_container(output, workspace);