]> git.mdlowis.com Git - proto/lwm.git/commitdiff
clients no longer track screens
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 9 Mar 2020 20:41:22 +0000 (16:41 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 9 Mar 2020 20:41:22 +0000 (16:41 -0400)
client.c
lwm.c
lwm.h
manage.c

index 6ecace5a2d69534113fbe4bd0eaf2c03291c7959..1cdc8dacaf23ecebebfe4c5475085369846077e8 100644 (file)
--- a/client.c
+++ b/client.c
@@ -147,8 +147,6 @@ Client_Add(Window w, Window root) {
 void
 Client_Remove(Client *c) {
     Client * cc;
-    ScreenInfo *screen = c->screen;
-
     if (c == 0)
         return;
 
diff --git a/lwm.c b/lwm.c
index 644da6db5458fb450d74d6d1468e1751f592241f..52deac75c151d94f3b8c5a79c431164b23ab8993 100644 (file)
--- a/lwm.c
+++ b/lwm.c
@@ -56,7 +56,6 @@ Cursor cursor_map[E_LAST];
 
 int screen_count;       /* The number of screens. */
 ScreenInfo * screens;       /* Information about these screens. */
-ScreenInfo * current_screen;
 
 XFontSet font_set = NULL;   /* Font set for title var */
 XFontSetExtents *font_set_ext = NULL;
@@ -164,7 +163,6 @@ scanWindowTree(int screen) {
             continue;
         c = Client_Add(wins[i], root);
         if (c != 0 && c->window == wins[i]) {
-            c->screen = &screens[screen];
             c->size.x = attr.x;
             c->size.y = attr.y;
             c->size.width  = attr.width;
diff --git a/lwm.h b/lwm.h
index 004643da6097bbdad19f5135a40e79bc694f4055..d3ee85e29219d6ac5ae26d6222c9cc2b3ea5001a 100644 (file)
--- a/lwm.h
+++ b/lwm.h
@@ -88,7 +88,6 @@ typedef struct Client {
     int namelen;         /* Length of client name */
     Edge cursor;         /* indicates which cursor is being used for parent window */
     IState internal_state;
-    ScreenInfo * screen;
 } Client;
 
 /*
@@ -119,7 +118,6 @@ extern Cursor cursor_map[E_LAST];
 
 extern int screen_count;
 extern ScreenInfo * screens;
-extern ScreenInfo * current_screen;
 extern XFontSet font_set;
 extern XFontSetExtents *font_set_ext;
 extern Atom wm_state;
index eb0caba46072f039fa5503d73a9b6555f27e1c1d..75e54939408808d7fbb315dc7e757fbb1e400f4e 100644 (file)
--- a/manage.c
+++ b/manage.c
@@ -30,7 +30,6 @@
 
 static int getProperty(Window, Atom, Atom, long, unsigned char **);
 static int getWindowState(Window, int *);
-static void applyGravity(Client *);
 
 /*ARGSUSED*/
 void