shell: Add wmfs-shell.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -75,7 +75,6 @@ color_enlight(ulong col)
|
||||
return col + 0x333333;
|
||||
else
|
||||
return col;
|
||||
|
||||
}
|
||||
|
||||
/** Round function
|
||||
|
||||
@@ -314,7 +314,6 @@ main(int argc, char **argv)
|
||||
XSetErrorHandler(errorhandler);
|
||||
|
||||
/* Let's Go ! */
|
||||
|
||||
ewmh_init_hints();
|
||||
init_conf();
|
||||
init();
|
||||
|
||||
Reference in New Issue
Block a user