From 53a5f6796a7f5d67c9cbc614395320fa0144868c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 29 Sep 2008 16:31:52 +0200 Subject: [PATCH] wibox: compute phys_screen on right index Signed-off-by: Julien Danjou --- wibox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wibox.c b/wibox.c index 3788848d..2d9eaa69 100644 --- a/wibox.c +++ b/wibox.c @@ -561,7 +561,7 @@ wibox_detach(wibox_t *wibox) void 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); -- 2.11.4.GIT