config.h FOCUS_START
This commit is contained in:
6
config.h
6
config.h
@@ -51,6 +51,12 @@
|
|||||||
// If on multi-head, place windows on monitor holding current window.
|
// If on multi-head, place windows on monitor holding current window.
|
||||||
#define MONITOR_START MONITOR_CURRENT
|
#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
|
||||||
|
|
||||||
// If you use "AnyModifier" place those keys at the end of the array.
|
// If you use "AnyModifier" place those keys at the end of the array.
|
||||||
binding keys[] = {
|
binding keys[] = {
|
||||||
|
|
||||||
|
|||||||
2
xoat.c
2
xoat.c
@@ -697,7 +697,7 @@ void map_notify(XEvent *e)
|
|||||||
client_raise_family(c);
|
client_raise_family(c);
|
||||||
client_update_border(c);
|
client_update_border(c);
|
||||||
// if no current window, or new window has opened in the current spot, focus it
|
// if no current window, or new window has opened in the current spot, focus it
|
||||||
if (!(a = window_build_client(current)) || (a && a->spot == c->spot))
|
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);
|
client_free(a);
|
||||||
ewmh_client_list();
|
ewmh_client_list();
|
||||||
|
|||||||
Reference in New Issue
Block a user