M config.def.h => config.def.h +2 -0
@@ 55,6 55,8 @@ static Key keys[] = { \
{ MODKEY, XK_q, killclient, { 0 } },
+ { MODKEY, XK_u, focusurgent, { .v = NULL } },
+
{ 0, XK_F11, fullscreen, { 0 } },
};
M tabbed.1 => tabbed.1 +3 -0
@@ 134,6 134,9 @@ an already existing tab.
.B Ctrl\-q
close tab
.TP
+.B Ctrl\-u
+focus next urgent tab
+.TP
.B Ctrl\-[0..9]
jumps to nth tab
.TP
M tabbed.c => tabbed.c +12 -0
@@ 104,6 104,7 @@ static void expose(const XEvent *e);
static void focus(int c);
static void focusin(const XEvent *e);
static void focusonce(const Arg *arg);
+static void focusurgent(const Arg *);
static void fullscreen(const Arg *arg);
static char* getatom(int a);
static int getclient(Window w);
@@ 492,6 493,17 @@ focusonce(const Arg *arg) {
}
void
+focusurgent(const Arg *args) {
+ int c;
+ for(c = (sel+1)%nclients; c != sel; c = (c+1)%nclients) {
+ if(clients[c]->urgent) {
+ focus(c);
+ return;
+ }
+ }
+}
+
+void
fullscreen(const Arg *arg) {
XEvent e;