remove monitor_start. does not play that well with spot_start

This commit is contained in:
seanpringle
2012-11-07 18:05:52 +10:00
parent 019d6c210b
commit 4197ad0bfc
3 changed files with 1 additions and 10 deletions

View File

@@ -50,13 +50,6 @@
// If spot is not current, window won't steal focus.
//#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...
// action_move .num = SPOT1/2/3
// action_focus .num = SPOT1/2/3

View File

@@ -73,8 +73,7 @@ void map_request(XEvent *e)
client *c = window_build_client(e->xmaprequest.window);
if (c && c->manage)
{
c->monitor = MONITOR_START == MONITOR_CURRENT ? current_mon: MONITOR_START;
c->monitor = MIN(nmonitors-1, MAX(0, c->monitor));
c->monitor = current_mon;
monitor *m = &monitors[c->monitor];
int i, spot = SPOT_START == SPOT_CURRENT ? current_spot: SPOT_START;

1
xoat.c
View File

@@ -57,7 +57,6 @@ Display *display;
#define STACK 64
#define MONITORS 3
#define ATOMLIST 10
enum { MONITOR_CURRENT=-1 };
enum { SPOT1=1, SPOT2, SPOT3, SPOT_CURRENT, SPOT_SMART, SPOT1_LEFT, SPOT1_RIGHT };
enum { LEFT=1, RIGHT, UP, DOWN };