mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-01 20:08:34 +00:00
desktop-shell: Avoid using maximized size in fullscreen state
The fullscreen should take precedence if the client requests both window states at the same time. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
parent
18eebe8af3
commit
5dbf96fb6c
|
@ -272,11 +272,10 @@ set_shsurf_size_maximized_or_fullscreen(struct shell_surface *shsurf,
|
|||
width = shsurf->output->width;
|
||||
height = shsurf->output->height;
|
||||
}
|
||||
}
|
||||
|
||||
/* take the panels into considerations */
|
||||
if (max_requested)
|
||||
} else if (max_requested) {
|
||||
/* take the panels into considerations */
|
||||
get_maximized_size(shsurf, &width, &height);
|
||||
}
|
||||
|
||||
/* (0, 0) means we're back from one of the maximized/fullcreen states */
|
||||
weston_desktop_surface_set_size(shsurf->desktop_surface, width, height);
|
||||
|
|
Loading…
Reference in a new issue