mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
Fix output adjustment for panels
This commit is contained in:
parent
e59cffcea2
commit
ef91764bc7
|
@ -427,6 +427,9 @@ static void arrange_windows_r(swayc_t *container, double width, double height) {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case C_OUTPUT:
|
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) {
|
for (i = 0; i < desktop_shell.panels->length; ++i) {
|
||||||
struct panel_config *config = desktop_shell.panels->items[i];
|
struct panel_config *config = desktop_shell.panels->items[i];
|
||||||
if (config->output == container->handle) {
|
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);
|
sway_log(L_DEBUG, "Arranging workspace #%d at %f, %f", i, child->x, child->y);
|
||||||
arrange_windows_r(child, -1, -1);
|
arrange_windows_r(child, -1, -1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
case C_VIEW:
|
case C_VIEW:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue