From 019d6c210bd73d31fb8125b34d761456b88aca20 Mon Sep 17 00:00:00 2001 From: seanpringle Date: Wed, 7 Nov 2012 18:01:28 +1000 Subject: [PATCH] remove focus ignore/steal stuff. use apps that behave. --- config.h | 6 ------ event.c | 4 +--- xoat.c | 1 - 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config.h b/config.h index c2b6d76..ce30658 100644 --- a/config.h +++ b/config.h @@ -57,12 +57,6 @@ // If on multi-head, place windows on monitor holding current window. #define MONITOR_START MONITOR_CURRENT -// Should new windows be automatically focused, or ignored until focused manually? -// IGNORE means new windows only steal focus if they obscure the current window. -// STEAL means new windows always steal focus. -//#define FOCUS_START FOCUS_IGNORE -#define FOCUS_START FOCUS_STEAL - // Available actions... // action_move .num = SPOT1/2/3 // action_focus .num = SPOT1/2/3 diff --git a/event.c b/event.c index b3d76ec..71c3d2d 100644 --- a/event.c +++ b/event.c @@ -99,9 +99,7 @@ void map_notify(XEvent *e) { client_raise_family(c); client_update_border(c); - // if no current window, or new window has opened in the current spot, focus it - if (FOCUS_START == FOCUS_STEAL || !(a = window_build_client(current)) || (a && a->spot == c->spot)) - client_set_focus(c); + client_set_focus(c); client_free(a); ewmh_client_list(); update_bars(); diff --git a/xoat.c b/xoat.c index db0841c..3db47a5 100644 --- a/xoat.c +++ b/xoat.c @@ -59,7 +59,6 @@ Display *display; #define ATOMLIST 10 enum { MONITOR_CURRENT=-1 }; enum { SPOT1=1, SPOT2, SPOT3, SPOT_CURRENT, SPOT_SMART, SPOT1_LEFT, SPOT1_RIGHT }; -enum { FOCUS_IGNORE=1, FOCUS_STEAL, }; enum { LEFT=1, RIGHT, UP, DOWN }; typedef struct {