xwayland: Stop drawing shadows on maximized windows

This is especially weird on multi-head setups, but we shouldn't be doing
it in any cases.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
dev
Derek Foreman 2 years ago
parent 8763f3800e
commit 107d69f10c
  1. 7
      xwayland/window-manager.c

@ -1760,10 +1760,12 @@ weston_wm_window_set_toplevel(struct weston_wm_window *window)
xwayland_interface->set_toplevel(window->shsurf); xwayland_interface->set_toplevel(window->shsurf);
window->width = window->saved_width; window->width = window->saved_width;
window->height = window->saved_height; window->height = window->saved_height;
if (window->frame) if (window->frame) {
frame_unset_flag(window->frame, FRAME_FLAG_MAXIMIZED);
frame_resize_inside(window->frame, frame_resize_inside(window->frame,
window->width, window->width,
window->height); window->height);
}
weston_wm_window_configure(window); weston_wm_window_configure(window);
} }
@ -2780,6 +2782,9 @@ send_configure(struct weston_surface *surface, int32_t width, int32_t height)
window->height = new_height; window->height = new_height;
if (window->frame) { if (window->frame) {
if (weston_wm_window_is_maximized(window))
frame_set_flag(window->frame, FRAME_FLAG_MAXIMIZED);
frame_resize_inside(window->frame, frame_resize_inside(window->frame,
window->width, window->height); window->width, window->height);
} }

Loading…
Cancel
Save