mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix output adjustment for panels
This commit is contained in:
parent
e59cffcea2
commit
ef91764bc7
1 changed files with 34 additions and 30 deletions
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue