mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Disable direct scanout for surfaces with popups
This commit is contained in:
parent
b757ef94ef
commit
b28e1b0d3c
|
@ -496,6 +496,12 @@ static bool scan_out_fullscreen_view(struct sway_output *output,
|
||||||
if (n_surfaces != 1) {
|
if (n_surfaces != 1) {
|
||||||
return false;
|
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) {
|
if (surface->buffer == NULL) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue