moving xembed messaged to top. - ttabbed - Simple tabbing application for X11.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 037729224a42ea5b1133c47c6f860c6c0946e34d
 (DIR) parent c703a4c2cf1f20101a05b9e317bb658e39f9e881
 (HTM) Author: Enno Boland (tox) <tox@s01.de>
       Date:   Wed, 23 Sep 2009 10:00:06 +0200
       
       moving xembed messaged to top.
       Diffstat:
         tabbed.c                            |      23 ++++++++++++-----------
       
       1 file changed, 12 insertions(+), 11 deletions(-)
       ---
 (DIR) diff --git a/tabbed.c b/tabbed.c
       @@ -20,17 +20,6 @@
        #include <X11/Xutil.h>
        #include <errno.h>
        
       -/* macros */
       -#define MAX(a, b)                ((a) > (b) ? (a) : (b))
       -#define MIN(a, b)                ((a) < (b) ? (a) : (b))
       -#define LENGTH(x)                (sizeof x / sizeof x[0])
       -#define CLEANMASK(mask)          (mask & ~(numlockmask|LockMask))
       -#define TEXTW(x)                 (textnw(x, strlen(x)) + dc.font.height)
       -#define XEMBED_EMBEDDED_NOTIFY   0
       -
       -enum { ColFG, ColBG, ColLast };                         /* color */
       -enum { NetSupported, NetWMName, NetLast };              /* EWMH atoms */
       -enum { WMProtocols, WMDelete, WMState, WMLast };        /* default atoms */
        /* XEMBED messages */
        #define XEMBED_EMBEDDED_NOTIFY                0
        #define XEMBED_WINDOW_ACTIVATE          1
       @@ -52,6 +41,18 @@ enum { WMProtocols, WMDelete, WMState, WMLast };        /* default atoms */
        #define XEMBED_FOCUS_FIRST                 1
        #define XEMBED_FOCUS_LAST                2
        
       +/* Macros */
       +#define MAX(a, b)                ((a) > (b) ? (a) : (b))
       +#define MIN(a, b)                ((a) < (b) ? (a) : (b))
       +#define LENGTH(x)                (sizeof x / sizeof x[0])
       +#define CLEANMASK(mask)          (mask & ~(numlockmask|LockMask))
       +#define TEXTW(x)                 (textnw(x, strlen(x)) + dc.font.height)
       +#define XEMBED_EMBEDDED_NOTIFY   0
       +
       +enum { ColFG, ColBG, ColLast };                         /* color */
       +enum { NetSupported, NetWMName, NetLast };              /* EWMH atoms */
       +enum { WMProtocols, WMDelete, WMState, WMLast };        /* default atoms */
       +
        ttypedef union {
                int i;
                const void *v;