sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit b28e1b0d3c4ab90dc7e0516078e1e3f332981f37
parent b757ef94ef15093b8851598f85ef047379c341b5
Author: novenary <streetwalkermc@gmail.com>
Date:   Tue, 28 Feb 2023 10:33:39 +0200

Disable direct scanout for surfaces with popups

Diffstat:
Msway/desktop/output.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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;