Fix output adjustment for panels

This commit is contained in:
Drew DeVault 2015-11-29 13:59:12 -05:00
parent e59cffcea2
commit ef91764bc7

View file

@ -427,6 +427,9 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
}
return;
case C_OUTPUT:
{
struct wlc_size resolution = *wlc_output_get_resolution(container->handle);
width = resolution.w; height = resolution.h;
for (i = 0; i < desktop_shell.panels->length; ++i) {
struct panel_config *config = desktop_shell.panels->items[i];
if (config->output == container->handle) {
@ -461,6 +464,7 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
sway_log(L_DEBUG, "Arranging workspace #%d at %f, %f", i, child->x, child->y);
arrange_windows_r(child, -1, -1);
}
}
return;
case C_VIEW:
{