xwm: Only call set_fullscreen if the window is mapped

If we get a fullscreen client message before we map the window, we don't
have a shell surface yet.  Just dont call set_fullscreen yet, and rely on
xserver_map_shell_surface() to fullscreen it when we map it.
dev
Kristian Høgsberg 12 years ago
parent cb4685bbd1
commit 762b166c35
  1. 2
      src/xwayland/window-manager.c

@ -1084,6 +1084,8 @@ weston_wm_window_handle_state(struct weston_wm_window *window,
if (window->fullscreen) { if (window->fullscreen) {
window->saved_width = window->width; window->saved_width = window->width;
window->saved_height = window->height; window->saved_height = window->height;
if (window->shsurf)
shell_interface->set_fullscreen(window->shsurf, shell_interface->set_fullscreen(window->shsurf,
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
0, NULL); 0, NULL);

Loading…
Cancel
Save