From 107d69f10cf7d74964f289c86e17389d29595439 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 6 Jun 2022 13:37:50 -0500 Subject: [PATCH] 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 --- xwayland/window-manager.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index dc5f8f9e..0293e3f2 100644 --- a/xwayland/window-manager.c +++ b/xwayland/window-manager.c @@ -1760,10 +1760,12 @@ weston_wm_window_set_toplevel(struct weston_wm_window *window) xwayland_interface->set_toplevel(window->shsurf); window->width = window->saved_width; window->height = window->saved_height; - if (window->frame) + if (window->frame) { + frame_unset_flag(window->frame, FRAME_FLAG_MAXIMIZED); frame_resize_inside(window->frame, window->width, window->height); + } 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; if (window->frame) { + if (weston_wm_window_is_maximized(window)) + frame_set_flag(window->frame, FRAME_FLAG_MAXIMIZED); + frame_resize_inside(window->frame, window->width, window->height); }