mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Remove server-decoration assumption if view supports xdg-decoration
This commit is contained in:
parent
21ff87d72b
commit
f16529e258
1 changed files with 7 additions and 5 deletions
|
@ -377,11 +377,13 @@ static void handle_map(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
view_map(view, view->wlr_xdg_surface->surface);
|
view_map(view, view->wlr_xdg_surface->surface);
|
||||||
|
|
||||||
struct sway_server_decoration *deco =
|
if (!view->xdg_decoration) {
|
||||||
decoration_from_surface(xdg_surface->surface);
|
struct sway_server_decoration *deco =
|
||||||
bool csd = !deco || deco->wlr_server_decoration->mode ==
|
decoration_from_surface(xdg_surface->surface);
|
||||||
WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT;
|
bool csd = !deco || deco->wlr_server_decoration->mode ==
|
||||||
view_update_csd_from_client(view, csd);
|
WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT;
|
||||||
|
view_update_csd_from_client(view, csd);
|
||||||
|
}
|
||||||
|
|
||||||
if (xdg_surface->toplevel->client_pending.fullscreen) {
|
if (xdg_surface->toplevel->client_pending.fullscreen) {
|
||||||
container_set_fullscreen(view->container, true);
|
container_set_fullscreen(view->container, true);
|
||||||
|
|
Loading…
Reference in a new issue