aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar novenary <streetwalkermc@gmail.com>2023-02-28 10:33:39 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-02-28 15:38:05 +0100
commitb28e1b0d3c4ab90dc7e0516078e1e3f332981f37 (patch)
tree1f0cbdbb0666dc4c91db263ae7212b31765b8dc5
parentsway{,bar}: use default font hint style (diff)
downloadsway-b28e1b0d3c4ab90dc7e0516078e1e3f332981f37.tar.gz
sway-b28e1b0d3c4ab90dc7e0516078e1e3f332981f37.tar.zst
sway-b28e1b0d3c4ab90dc7e0516078e1e3f332981f37.zip
Disable direct scanout for surfaces with popups
-rw-r--r--sway/desktop/output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 1b9b5e67..0c8a5fd4 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -496,6 +496,12 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
496 if (n_surfaces != 1) { 496 if (n_surfaces != 1) {
497 return false; 497 return false;
498 } 498 }
499 size_t n_popups = 0;
500 output_view_for_each_popup_surface(output, view,
501 count_surface_iterator, &n_popups);
502 if (n_popups > 0) {
503 return false;
504 }
499 505
500 if (surface->buffer == NULL) { 506 if (surface->buffer == NULL) {
501 return false; 507 return false;