catwm: Remove master sizing

This commit is contained in:
Dylan Araps committed 2019-10-11 18:04:24 +03:00
1 parent 0ac53bd8b3
commit 445d61a269
1 file changed
-7
-7
View File
@@ -65,7 +65,6 @@ struct client{
typedef struct desktop desktop; typedef struct desktop desktop;
struct desktop{ struct desktop{
int master_size;
int mode; int mode;
client *head; client *head;
client *current; client *current;
@@ -103,7 +102,6 @@ static void update_current();
static Display *dis; static Display *dis;
static int bool_quit; static int bool_quit;
static int current_desktop; static int current_desktop;
static int master_size;
static int mode; static int mode;
static int sh; static int sh;
static int sw; static int sw;
@@ -378,7 +376,6 @@ void remove_window(Window w) {
} }
void save_desktop(int i) { void save_desktop(int i) {
desktops[i].master_size = master_size;
desktops[i].mode = mode; desktops[i].mode = mode;
desktops[i].head = head; desktops[i].head = head;
desktops[i].current = current; desktops[i].current = current;
@@ -387,7 +384,6 @@ void save_desktop(int i) {
void select_desktop(int i) { void select_desktop(int i) {
head = desktops[i].head; head = desktops[i].head;
current = desktops[i].current; current = desktops[i].current;
master_size = desktops[i].master_size;
mode = desktops[i].mode; mode = desktops[i].mode;
current_desktop = i; current_desktop = i;
} }
@@ -418,11 +414,8 @@ void setup() {
head = NULL; head = NULL;
current = NULL; current = NULL;
master_size = sw*MASTER_SIZE;
int i; int i;
for(i=0;i<TABLENGTH(desktops);++i) { for(i=0;i<TABLENGTH(desktops);++i) {
desktops[i].master_size = master_size;
desktops[i].mode = mode; desktops[i].mode = mode;
desktops[i].head = head; desktops[i].head = head;
desktops[i].current = current; desktops[i].current = current;