From df2770bb2f96f5d19b615b22dc3172b906551234 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 10 Jun 2008 15:15:13 +0200 Subject: [PATCH] [client] Loadprops use screen_t Signed-off-by: Julien Danjou --- client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client.c b/client.c index 707539f6..3848ce3f 100644 --- a/client.c +++ b/client.c @@ -48,18 +48,18 @@ extern awesome_t globalconf; * and floating state before awesome was restarted if any. * \todo This may bug if number of tags is != than before. * \param c A client pointer. - * \param screen A virtual screen number. + * \param screen A virtual screen. * \return True if client had property, false otherwise. */ static bool -client_loadprops(client_t * c, int screen) +client_loadprops(client_t * c, screen_t *screen) { int i, ntags = 0; tag_t *tag; char *prop = NULL; bool result = false; - for(tag = globalconf.screens[screen].tags; tag; tag = tag->next) + for(tag = screen->tags; tag; tag = tag->next) ntags++; if(xutil_gettextprop(globalconf.connection, c->win, &globalconf.atoms, @@ -69,7 +69,7 @@ client_loadprops(client_t * c, int screen) "_AWESOME_PROPERTIES")), &prop)) { - for(i = 0, tag = globalconf.screens[screen].tags; tag && i < ntags && prop[i]; i++, tag = tag->next) + for(i = 0, tag = screen->tags; tag && i < ntags && prop[i]; i++, tag = tag->next) if(prop[i] == '1') { tag_client(c, tag); @@ -357,7 +357,7 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen) client_updatewmhints(c); /* Try to load props if any */ - if(!(retloadprops = client_loadprops(c, screen))) + if(!(retloadprops = client_loadprops(c, &globalconf.screens[screen]))) screen_client_moveto(c, screen, true); /* Then check clients hints */