aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/xwayland/xwm.h2
-rw-r--r--types/wlr_xdg_shell.c4
-rw-r--r--xwayland/xwm.c5
3 files changed, 8 insertions, 3 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index 82bf726c..08d37736 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -62,6 +62,8 @@ enum atom_name {
NET_WM_WINDOW_TYPE_POPUP_MENU,
NET_WM_WINDOW_TYPE_COMBO,
NET_WM_WINDOW_TYPE_MENU,
+ NET_WM_WINDOW_TYPE_NOTIFICATION,
+ NET_WM_WINDOW_TYPE_SPLASH,
DND_SELECTION,
DND_AWARE,
DND_STATUS,
diff --git a/types/wlr_xdg_shell.c b/types/wlr_xdg_shell.c
index 5fd3d33e..cd612e30 100644
--- a/types/wlr_xdg_shell.c
+++ b/types/wlr_xdg_shell.c
@@ -398,8 +398,8 @@ static const struct xdg_positioner_interface
static void xdg_shell_handle_create_positioner(struct wl_client *wl_client,
struct wl_resource *resource, uint32_t id) {
- struct wlr_xdg_positioner *positioner =
- calloc(1, sizeof(struct wlr_xdg_positioner));
+ struct wlr_xdg_positioner_resource *positioner =
+ calloc(1, sizeof(struct wlr_xdg_positioner_resource));
if (positioner == NULL) {
wl_client_post_no_memory(wl_client);
return;
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 72aa0282..e77d6e96 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -61,6 +61,8 @@ const char *atom_map[ATOM_LAST] = {
"_NET_WM_WINDOW_TYPE_POPUP_MENU",
"_NET_WM_WINDOW_TYPE_COMBO",
"_NET_WM_WINDOW_TYPE_MENU",
+ "_NET_WM_WINDOW_TYPE_NOTIFICATION",
+ "_NET_WM_WINDOW_TYPE_SPLASH",
"XdndSelection",
"XdndAware",
"XdndStatus",
@@ -1637,9 +1639,10 @@ bool wlr_xwayland_surface_is_unmanaged(
NET_WM_WINDOW_TYPE_DND,
NET_WM_WINDOW_TYPE_DROPDOWN_MENU,
NET_WM_WINDOW_TYPE_MENU,
+ NET_WM_WINDOW_TYPE_NOTIFICATION,
NET_WM_WINDOW_TYPE_POPUP_MENU,
+ NET_WM_WINDOW_TYPE_SPLASH,
NET_WM_WINDOW_TYPE_TOOLTIP,
- NET_WM_WINDOW_TYPE_UTILITY,
};
for (size_t i = 0; i < sizeof(needles) / sizeof(needles[0]); ++i) {