mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
extensions: Track panels by wl_resource, position per panel.
Track each panel separately via its wl_resource. `set_panel_position` might be called before `set_panel`, so reuse panel config. Place the position in panel_config so that each panel has its own position.
This commit is contained in:
parent
6db0f6f80f
commit
e45fd9b6c5
4 changed files with 26 additions and 9 deletions
|
|
@ -90,7 +90,7 @@ static void handle_output_pre_render(wlc_handle output) {
|
|||
struct wlc_geometry geo = {
|
||||
.size = size
|
||||
};
|
||||
switch (desktop_shell.panel_position) {
|
||||
switch (config->panel_position) {
|
||||
case DESKTOP_SHELL_PANEL_POSITION_TOP:
|
||||
geo.origin = (struct wlc_point){ 0, 0 };
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue