From a141f4c8bf3188a371ce7a43f27f95f44627d0c0 Mon Sep 17 00:00:00 2001 From: moetunes Date: Sat, 15 Oct 2011 14:55:45 +1000 Subject: Fine tuned the maprequest function --- src/config.h | 4 +++- src/dminiwm.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/config.h b/src/config.h index d0c58f1..10843a3 100755 --- a/src/config.h +++ b/src/config.h @@ -35,17 +35,19 @@ #define DEFAULT_MODE 0 /* 0=Vertical, 1=Fullscreen 2=Horizontal 3=grid*/ #define FOLLOW_MOUSE 0 /* 1=Don't 0=Focus the window the mouse just entered */ #define FOLLOW_WINDOW 0 /* 1=Don't 0=Follow the window when moved to a different desktop */ +#define DESKTOPS 6 /* Must edit DESKTOPCHANGE keys to suit */ // Colors #define FOCUS "#664422" // dkorange #define UNFOCUS "#004050" // blueish -// Applications to a set desktop +// Applications to a specific desktop static const Convenience convenience[] = { \ /* class desktop follow */ { "Thunar", 2, 1 }, { "Leafpad", 2, 1 }, { "Firefox", 3, 0 }, + { "MPlayer", 4, 1 }, { "Thunderbird", 5, 0 }, { "Pysol", 6, 0 }, }; diff --git a/src/dminiwm.c b/src/dminiwm.c index 4029cf1..46e80a4 100644 --- a/src/dminiwm.c +++ b/src/dminiwm.c @@ -142,7 +142,7 @@ static void (*events[LASTEvent])(XEvent *e) = { }; // Desktop array -static desktop desktops[6]; +static desktop desktops[DESKTOPS]; /* ***************************** Window Management ******************************* */ void add_window(Window w) { @@ -697,7 +697,6 @@ void maprequest(XEvent *e) { if(XGetClassHint(dis, ev->window, &ch)) for(i=0;iwindow); -- cgit v1.3.1