From d941a8f55cf9980b025b90a8a4580eb98d5a4b18 Mon Sep 17 00:00:00 2001 From: lbwtw Date: Tue, 26 Nov 2024 21:39:49 +0800 Subject: [PATCH] xwm root window support _DEEPIN_NO_TITLEBAR atom - Adapting X11 CSD applications --- .../001-support-deepin-no-titlebar-atom.patch | 32 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 33 insertions(+) create mode 100644 debian/patches/001-support-deepin-no-titlebar-atom.patch diff --git a/debian/patches/001-support-deepin-no-titlebar-atom.patch b/debian/patches/001-support-deepin-no-titlebar-atom.patch new file mode 100644 index 0000000..4482fbf --- /dev/null +++ b/debian/patches/001-support-deepin-no-titlebar-atom.patch @@ -0,0 +1,32 @@ +Index: wlroots/include/xwayland/xwm.h +=================================================================== +--- wlroots.orig/include/xwayland/xwm.h ++++ wlroots/include/xwayland/xwm.h +@@ -90,6 +90,7 @@ enum atom_name { + NET_CLIENT_LIST, + NET_CLIENT_LIST_STACKING, + NET_WORKAREA, ++ DEEPIN_NO_TITLEBAR, + ATOM_LAST // keep last + }; + +Index: wlroots/xwayland/xwm.c +=================================================================== +--- wlroots.orig/xwayland/xwm.c ++++ wlroots/xwayland/xwm.c +@@ -89,6 +89,7 @@ static const char *const atom_map[ATOM_L + [NET_CLIENT_LIST] = "_NET_CLIENT_LIST", + [NET_CLIENT_LIST_STACKING] = "_NET_CLIENT_LIST_STACKING", + [NET_WORKAREA] = "_NET_WORKAREA", ++ [DEEPIN_NO_TITLEBAR] = "_DEEPIN_NO_TITLEBAR", + }; + + #define STARTUP_INFO_REMOVE_PREFIX "remove: ID=" +@@ -2232,6 +2233,7 @@ struct wlr_xwm *xwm_create(struct wlr_xw + xwm->atoms[NET_WM_STATE_HIDDEN], + xwm->atoms[NET_CLIENT_LIST], + xwm->atoms[NET_CLIENT_LIST_STACKING], ++ xwm->atoms[DEEPIN_NO_TITLEBAR], + }; + xcb_change_property(xwm->xcb_conn, + XCB_PROP_MODE_REPLACE, diff --git a/debian/patches/series b/debian/patches/series index b18b5bd..d93fbcb 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ Revert-layer-shell-error-on-0-dimension-without-anchors.patch +001-support-deepin-no-titlebar-atom.patch