diff --git a/cwm.1 b/cwm.1 index 7a3f49f..e0a892e 100644 --- a/cwm.1 +++ b/cwm.1 @@ -219,6 +219,11 @@ Window is currently focused. .It & Window is hidden. .El +.Sh APPLICATIONS +.Nm +manages a list of applications defined with the +.Cm command +configuration option. .Sh GROUPS .Nm has the ability to group windows together, and use the groups to @@ -242,8 +247,7 @@ Selecting an item will warp to that window, unhiding it if necessary. Show list of currently defined groups. Selecting an item will hide/unhide that group. .It Ic M3 -Show list of applications as defined in -.Pa ~/.cwmrc . +Show list of applications as defined in the configuration file. Selecting an item will spawn that application. .El .Sh ENVIRONMENT diff --git a/cwmrc.5 b/cwmrc.5 index 7434d66..41093a5 100644 --- a/cwmrc.5 +++ b/cwmrc.5 @@ -173,7 +173,7 @@ entry is shown in the application menu. When selected, the defined .Ar path is executed with -.Xr execve 2 . +.Xr execvp 3 . .Pp The .Ar name diff --git a/kbfunc.c b/kbfunc.c index bb5ac37..cd4ef1c 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -145,6 +145,7 @@ kbfunc_client_move_kb(void *ctx, struct cargs *cargs) client_move(cc); client_ptr_inbound(cc, 1); + XSync(X_Dpy, True); } static void @@ -233,6 +234,7 @@ kbfunc_client_resize_kb(void *ctx, struct cargs *cargs) client_resize(cc, 1); client_ptr_inbound(cc, 1); + XSync(X_Dpy, True); } static void diff --git a/menu.c b/menu.c index 2d6ba27..c9b4b0e 100644 --- a/menu.c +++ b/menu.c @@ -129,6 +129,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt, CurrentTime) != GrabSuccess) { XftDrawDestroy(mc.xftdraw); XDestroyWindow(X_Dpy, mc.win); + return(NULL); } XGetInputFocus(X_Dpy, &focuswin, &focusrevert); diff --git a/util.c b/util.c index 0fa8e9d..781308f 100644 --- a/util.c +++ b/util.c @@ -135,5 +135,6 @@ log_debug(int level, const char *func, const char *msg, ...) va_start(ap, msg); xasprintf(&fmt, "debug%d: %s: %s", level, func, msg); log_msg(fmt, ap); + free(fmt); va_end(ap); } diff --git a/xevents.c b/xevents.c index c8d85d4..dd4bcb3 100644 --- a/xevents.c +++ b/xevents.c @@ -207,7 +207,8 @@ xev_handle_propertynotify(XEvent *ee) group_movetogroup(cc, cc->gc->num); break; default: - /* do nothing */ + if (e->atom == ewmh[_NET_WM_NAME]) + client_setname(cc); break; } } else {