diff options
Diffstat (limited to 'x11-misc/dunst-1.0.0/net-wm-window-type.patch')
-rw-r--r-- | x11-misc/dunst-1.0.0/net-wm-window-type.patch | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/x11-misc/dunst-1.0.0/net-wm-window-type.patch b/x11-misc/dunst-1.0.0/net-wm-window-type.patch deleted file mode 100644 index cfd5e8c..0000000 --- a/x11-misc/dunst-1.0.0/net-wm-window-type.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 41e5976e6da40344aa400f9011529db9c75bf769 Mon Sep 17 00:00:00 2001 -From: Sascha Kruse <knopwob@googlemail.com> -Date: Tue, 16 Jul 2013 13:30:46 +0200 -Subject: [PATCH] set _NET_WM_WINDOW_TYPE (thanks lexming) - -fix #113 ---- - x.c | 23 +++++++++++++++++++++++ - 1 file changed, 23 insertions(+) - -diff --git a/x.c b/x.c -index e149f5c..5622f30 100644 ---- a/x.c -+++ b/x.c -@@ -850,6 +850,27 @@ void x_setup(void) - x_win_setup(); - x_cairo_setup(); - x_shortcut_grab(&settings.history_ks); -+ -+} -+ -+ -+static void x_set_win_type(Window win) -+{ -+ -+ long data[2]; -+ -+ Atom net_wm_window_type = -+ XInternAtom(xctx.dpy, "_NET_WM_WINDOW_TYPE", false); -+ Atom net_wm_window_type_notification = -+ XInternAtom(xctx.dpy, "_NET_WM_WINDOW_TYPE_NOTIFICATION", false); -+ Atom net_wm_window_type_utility = -+ XInternAtom(xctx.dpy, "_NET_WM_WINDOW_TYPE_UTILITY", false); -+ -+ data[0] = net_wm_window_type_notification; -+ data[1] = net_wm_window_type_utility; -+ -+ XChangeProperty(xctx.dpy, win, net_wm_window_type, XA_ATOM, 32, -+ PropModeReplace, (unsigned char *) &data, 1L); - } - - /* -@@ -884,6 +905,8 @@ static void x_win_setup(void) - CopyFromParent, DefaultVisual(xctx.dpy, - DefaultScreen(xctx.dpy)), - CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); -+ -+ x_set_win_type(xctx.win); - settings.transparency = - settings.transparency > 100 ? 100 : settings.transparency; - setopacity(xctx.win, --- -1.8.4 - |