shell: Add wmfs-shell.

This commit is contained in:
Martin Duquesnoy
2009-01-11 22:04:48 +01:00
parent c6f4f09967
commit b0908ad409
8 changed files with 244 additions and 6 deletions

View File

@@ -183,7 +183,8 @@ clientmessageevent(XClientMessageEvent *ev)
void (*func)(uicb_t) = name_to_func((char*)ret_func, func_list);
func((uicb_t)ret_cmd);
if(func)
func((uicb_t)ret_cmd);
if(ret_cmd)
XFree(ret_cmd);

View File

@@ -142,7 +142,7 @@ mouse_grabbuttons(Client *c, Bool focused)
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
if(focused)
for(i = 0; i < (sizeof but / sizeof but[0]); ++i)
for(i = 0; i < LEN(but); ++i)
{
XGrabButton(dpy, but[i], conf.client.mod, c->win, False,
ButtonMask, GrabModeAsync,GrabModeSync, None, None);

View File

@@ -40,7 +40,7 @@
#define NUM_OF_LAYOUT 7
/* Typedef */
typedef const char* uicb_t;
typedef const char* uicb_t;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned short ushort;

View File

@@ -75,7 +75,6 @@ color_enlight(ulong col)
return col + 0x333333;
else
return col;
}
/** Round function

View File

@@ -314,7 +314,6 @@ main(int argc, char **argv)
XSetErrorHandler(errorhandler);
/* Let's Go ! */
ewmh_init_hints();
init_conf();
init();