From cbd09d0751de411dafc1dbf0544cb8f085d3475a Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Sat, 7 Dec 2019 14:32:51 -0500 Subject: [PATCH] add unhide shortcut --- config.h | 1 + menu.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.h b/config.h index dbb1324..8100644 100755 --- a/config.h +++ b/config.h @@ -17,6 +17,7 @@ #define MAX_KEY XK_m #define ICON_KEY XK_i +#define UNHIDE_KEY XK_u #define MOVE_KEY XK_v #define RESIZE_KEY XK_r #define DESTROY_KEY XK_d diff --git a/menu.c b/menu.c index 4930ba6..ae9592a 100755 --- a/menu.c +++ b/menu.c @@ -119,7 +119,11 @@ button(XButtonEvent *e) } switch (e->button){ case Button1: + printf("button 1 on client"); + fflush(stdout); if(c){ + if (ffm) + XRaiseWindow(dpy, c->window); XMapRaised(dpy, c->parent); top(c); active(c);