aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authornovenary <streetwalkermc@gmail.com>2023-02-28 10:33:39 +0200
committerSimon Ser <contact@emersion.fr>2023-02-28 15:38:05 +0100
commitb28e1b0d3c4ab90dc7e0516078e1e3f332981f37 (patch)
tree1f0cbdbb0666dc4c91db263ae7212b31765b8dc5 /sway/desktop
parentb757ef94ef15093b8851598f85ef047379c341b5 (diff)
Disable direct scanout for surfaces with popups
Diffstat (limited to 'sway/desktop')
-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,
if (n_surfaces != 1) {
return false;
}
+ size_t n_popups = 0;
+ output_view_for_each_popup_surface(output, view,
+ count_surface_iterator, &n_popups);
+ if (n_popups > 0) {
+ return false;
+ }
if (surface->buffer == NULL) {
return false;