diff --git a/src/mango.c b/src/mango.c index 76005a1..e3e8963 100644 --- a/src/mango.c +++ b/src/mango.c @@ -4130,8 +4130,6 @@ void requestdecorationmode(struct wl_listener *listener, void *data) { // 如果客户端没有指定,使用默认模式 if (!c->allow_csd) { requested_mode = WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE; - } else if (requested_mode == - WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE) { } wlr_xdg_toplevel_decoration_v1_set_mode(c->decoration, requested_mode);