diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-20 12:49:11 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-20 12:54:34 +0100 |
commit | e45fd9b6c5dfb858c6f86277351bc216574d8200 (patch) | |
tree | 8d70e85b1e1f1dcca401429c95b9b8ee9bde8890 /sway/handlers.c | |
parent | extensions: panel_config->resource => wl_surface_res. (diff) | |
download | sway-e45fd9b6c5dfb858c6f86277351bc216574d8200.tar.gz sway-e45fd9b6c5dfb858c6f86277351bc216574d8200.tar.zst sway-e45fd9b6c5dfb858c6f86277351bc216574d8200.zip |
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.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 3161c677..751e894c 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -90,7 +90,7 @@ static void handle_output_pre_render(wlc_handle output) { | |||
90 | struct wlc_geometry geo = { | 90 | struct wlc_geometry geo = { |
91 | .size = size | 91 | .size = size |
92 | }; | 92 | }; |
93 | switch (desktop_shell.panel_position) { | 93 | switch (config->panel_position) { |
94 | case DESKTOP_SHELL_PANEL_POSITION_TOP: | 94 | case DESKTOP_SHELL_PANEL_POSITION_TOP: |
95 | geo.origin = (struct wlc_point){ 0, 0 }; | 95 | geo.origin = (struct wlc_point){ 0, 0 }; |
96 | break; | 96 | break; |