From 389e1f809af281fd894deea58fe3dcb142350de0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Sep 2007 23:10:36 +0200 Subject: [PATCH] add screen arg to _tile --- layouts/tile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/tile.c b/layouts/tile.c index a3afbb97..40ccd3a3 100644 --- a/layouts/tile.c +++ b/layouts/tile.c @@ -79,7 +79,7 @@ uicb_setmwfact(Display *disp, } static void -_tile(Display *disp, awesome_config *awesomeconf, const Bool right) +_tile(Display *disp, int screen, awesome_config *awesomeconf, const Bool right) { /* windows area geometry */ int wah = 0, waw = 0, wax = 0, way = 0; @@ -93,7 +93,7 @@ _tile(Display *disp, awesome_config *awesomeconf, const Bool right) ScreenInfo *screens_info = NULL; Client *c; - screens_info = get_screen_info(disp, DefaultScreen(disp), awesomeconf->statusbar, &screen_numbers); + screens_info = get_screen_info(disp, screen, awesomeconf->statusbar, &screen_numbers); for(n = 0, c = clients; c; c = c->next) if(IS_TILED(c, awesomeconf->selected_tags, awesomeconf->ntags)) @@ -194,11 +194,11 @@ _tile(Display *disp, awesome_config *awesomeconf, const Bool right) void tile(Display *disp, awesome_config *awesomeconf) { - _tile(disp, awesomeconf, True); + _tile(disp, DefaultScreen(disp), awesomeconf, True); } void tileleft(Display *disp, awesome_config *awesomeconf) { - _tile(disp, awesomeconf, False); + _tile(disp, DefaultScreen(disp), awesomeconf, False); }