mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 21:08:05 +02:00
libweston-desktop/{wl_shell, xwayland}: Fix changing between toplevel states
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net> Tested-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
This commit is contained in:
parent
f6636a8dec
commit
6384edf025
2 changed files with 6 additions and 2 deletions
|
|
@ -151,8 +151,10 @@ weston_desktop_wl_shell_change_state(struct weston_desktop_wl_shell_surface *sur
|
|||
|
||||
assert(state != NONE);
|
||||
|
||||
if (to_add && surface->added)
|
||||
if (to_add && surface->added) {
|
||||
surface->state = state;
|
||||
return;
|
||||
}
|
||||
|
||||
if (surface->state != state) {
|
||||
if (surface->state == POPUP)
|
||||
|
|
|
|||
|
|
@ -75,8 +75,10 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf
|
|||
|
||||
assert(state != NONE);
|
||||
|
||||
if (to_add && surface->added)
|
||||
if (to_add && surface->added) {
|
||||
surface->state = state;
|
||||
return;
|
||||
}
|
||||
|
||||
if (surface->state != state) {
|
||||
if (surface->state == XWAYLAND) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue