t_NET_WM_WINDOW_TYPE needs to be atom. - svkbd - Simple X11 onscreen keyboard.
 (HTM) git clone git://r-36.net/svkbd
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 5c97d98c638f83f2d22ba81d6977e86bc45361fe
 (DIR) parent 6e23a19d2f80b46924e31ea5d9b46d95ce709e66
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Tue,  5 Apr 2011 17:23:40 +0200
       
       _NET_WM_WINDOW_TYPE needs to be atom.
       Diffstat:
         svkbd.c                             |      11 +++++------
       
       1 file changed, 5 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/svkbd.c b/svkbd.c
       t@@ -20,7 +20,7 @@
        
        /* enums */
        enum { ColFG, ColBG, ColLast };
       -enum { NetWMWindowType, NetLast };
       +enum { NetWMWindowType, NetWMWindowTypeDock, NetLast };
        
        /* typedefs */
        typedef unsigned int uint;
       t@@ -93,7 +93,6 @@ static Bool running = True;
        static KeySym pressedmod = 0;
        static int rows = 0, ww = 0, wh = 0, wx = 0, wy = 0;
        static char *name = "svkbd";
       -static char *wintype = "_NET_WM_WINDOW_TYPE_TOOLBAR";
        /* configuration, allows nested code to access above variables */
        #include "config.h"
        #include "layout.h"
       t@@ -346,6 +345,7 @@ setup(void) {
        
                /* init atoms */
                netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
       +        netatom[NetWMWindowTypeDock] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False);
        
                /* init appearance */
                countrows();
       t@@ -401,10 +401,9 @@ setup(void) {
                XFree(wmh);
                XFree(str.value);
        
       -        XStringListToTextProperty(&wintype, 1, &str);
       -        XSetTextProperty(dpy, win, &str, netatom[NetWMWindowType]);
       -        XFree(str.value);
       -
       +        XChangeProperty(dpy, win, netatom[NetWMWindowType], XA_ATOM,
       +                        32, PropModeReplace,
       +                        (unsigned char *)&netatom[NetWMWindowTypeDock], 1);
                XMapRaised(dpy, win);
                updatekeys();
                drawkeyboard();