remove monitor_start. does not play that well with spot_start
This commit is contained in:
7
config.h
7
config.h
@@ -50,13 +50,6 @@
|
|||||||
// If spot is not current, window won't steal focus.
|
// If spot is not current, window won't steal focus.
|
||||||
//#define SPOT_START SPOT1
|
//#define SPOT_START SPOT1
|
||||||
|
|
||||||
// If on multi-head, place windows on monitor N.
|
|
||||||
// (0-based index, same order as xrandr list)
|
|
||||||
//#define MONITOR_START 0
|
|
||||||
|
|
||||||
// If on multi-head, place windows on monitor holding current window.
|
|
||||||
#define MONITOR_START MONITOR_CURRENT
|
|
||||||
|
|
||||||
// Available actions...
|
// Available actions...
|
||||||
// action_move .num = SPOT1/2/3
|
// action_move .num = SPOT1/2/3
|
||||||
// action_focus .num = SPOT1/2/3
|
// action_focus .num = SPOT1/2/3
|
||||||
|
|||||||
3
event.c
3
event.c
@@ -73,8 +73,7 @@ void map_request(XEvent *e)
|
|||||||
client *c = window_build_client(e->xmaprequest.window);
|
client *c = window_build_client(e->xmaprequest.window);
|
||||||
if (c && c->manage)
|
if (c && c->manage)
|
||||||
{
|
{
|
||||||
c->monitor = MONITOR_START == MONITOR_CURRENT ? current_mon: MONITOR_START;
|
c->monitor = current_mon;
|
||||||
c->monitor = MIN(nmonitors-1, MAX(0, c->monitor));
|
|
||||||
monitor *m = &monitors[c->monitor];
|
monitor *m = &monitors[c->monitor];
|
||||||
|
|
||||||
int i, spot = SPOT_START == SPOT_CURRENT ? current_spot: SPOT_START;
|
int i, spot = SPOT_START == SPOT_CURRENT ? current_spot: SPOT_START;
|
||||||
|
|||||||
1
xoat.c
1
xoat.c
@@ -57,7 +57,6 @@ Display *display;
|
|||||||
#define STACK 64
|
#define STACK 64
|
||||||
#define MONITORS 3
|
#define MONITORS 3
|
||||||
#define ATOMLIST 10
|
#define ATOMLIST 10
|
||||||
enum { MONITOR_CURRENT=-1 };
|
|
||||||
enum { SPOT1=1, SPOT2, SPOT3, SPOT_CURRENT, SPOT_SMART, SPOT1_LEFT, SPOT1_RIGHT };
|
enum { SPOT1=1, SPOT2, SPOT3, SPOT_CURRENT, SPOT_SMART, SPOT1_LEFT, SPOT1_RIGHT };
|
||||||
enum { LEFT=1, RIGHT, UP, DOWN };
|
enum { LEFT=1, RIGHT, UP, DOWN };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user