From e45fd9b6c5dfb858c6f86277351bc216574d8200 Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Sun, 20 Dec 2015 12:49:11 +0100 Subject: 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. --- sway/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/handlers.c') 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) { 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; -- cgit v1.2.3-54-g00ecf