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
@ -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…
Reference in New Issue
Block a user