Account for vertical offset of monitor in x11

This commit is contained in:
Philip Wales 2024-10-11 23:15:24 -05:00 committed by Jari Vetoniemi
parent f8b17fd861
commit 5aeae37878

View File

@ -117,7 +117,7 @@ bm_x11_window_render(struct window *window, struct bm_menu *menu)
win_y = window->max_height - window->height;
}
XMoveResizeWindow(window->display, window->drawable, window->x, win_y + window->y_offset, window->width, window->height);
XMoveResizeWindow(window->display, window->drawable, window->x, window->y + win_y + window->y_offset, window->width, window->height);
}
if (buffer->created) {