wibox: compute phys_screen on right index
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6e4db19e30
commit
53a5f6796a
2
wibox.c
2
wibox.c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue