summaryrefslogtreecommitdiff
path: root/tabbed.c
diff options
context:
space:
mode:
Diffstat (limited to 'tabbed.c')
-rw-r--r--tabbed.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tabbed.c b/tabbed.c
index b15f9cb..93c9d0f 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -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;