aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-02 20:39:15 +0100
committeremersion <contact@emersion.fr>2018-02-02 20:39:15 +0100
commit5aa642485d8d2e1cc17a105dfcc69dd93b20c9a9 (patch)
tree468761107052af16cdc1bbc0fbbc0577e06ca18f
parent4d6e7f510e80ecae25dff8f36cde77583f53ee8b (diff)
rootston: do not render views fullscreened on other outputs
-rw-r--r--rootston/output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 294ad57a..b5b277cf 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -312,6 +312,12 @@ damage_finish:
}
static void render_view(struct roots_view *view, struct render_data *data) {
+ // Do not render views fullscreened on other outputs
+ if (view->fullscreen_output != NULL &&
+ view->fullscreen_output != data->output) {
+ return;
+ }
+
render_decorations(view, data);
view_for_each_surface(view, render_surface, data);
}