Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix wine program start
Browse files Browse the repository at this point in the history
Groveer committed Dec 16, 2024
1 parent b86d20c commit 7256d1b
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/xwayland/xwm.h
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ enum atom_name {
NET_CLIENT_LIST,
NET_CLIENT_LIST_STACKING,
NET_WORKAREA,
DEEPIN_NO_TITLEBAR,
ATOM_LAST // keep last
};

2 changes: 2 additions & 0 deletions types/wlr_layer_shell_v1.c
Original file line number Diff line number Diff line change
@@ -336,6 +336,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
return;
}

#if 0
const uint32_t horiz = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT |
ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT;
if (surface->pending.desired_width == 0 &&
@@ -355,6 +356,7 @@ static void layer_surface_role_client_commit(struct wlr_surface *wlr_surface) {
"height 0 requested without setting top and bottom anchors");
return;
}
#endif
}

static void layer_surface_role_commit(struct wlr_surface *wlr_surface) {
3 changes: 3 additions & 0 deletions xwayland/xwm.c
Original file line number Diff line number Diff line change
@@ -89,6 +89,7 @@ static const char *const atom_map[ATOM_LAST] = {
[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="
@@ -2223,6 +2224,7 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *xwayland, int wm_fd) {
xcb_atom_t supported[] = {
xwm->atoms[NET_WM_STATE],
xwm->atoms[NET_ACTIVE_WINDOW],
xwm->atoms[NET_WM_PID],
xwm->atoms[NET_WM_MOVERESIZE],
xwm->atoms[NET_WM_STATE_FOCUSED],
xwm->atoms[NET_WM_STATE_MODAL],
@@ -2232,6 +2234,7 @@ struct wlr_xwm *xwm_create(struct wlr_xwayland *xwayland, int wm_fd) {
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,

0 comments on commit 7256d1b

Please sign in to comment.