add screen arg to _tile

This commit is contained in:
Julien Danjou 2007-09-15 23:10:36 +02:00
parent f4cb327f6d
commit 389e1f809a
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}