wibox: compute phys_screen on right index

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-29 16:31:52 +02:00
parent 6e4db19e30
commit 53a5f6796a
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ wibox_detach(wibox_t *wibox)
void void
wibox_attach(wibox_t *wibox, screen_t *s) wibox_attach(wibox_t *wibox, screen_t *s)
{ {
int phys_screen = screen_virttophys(wibox->screen); int phys_screen = screen_virttophys(s->index);
wibox_detach(wibox); wibox_detach(wibox);