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:
S. Christoffer Eliesen 2015-12-20 12:49:11 +01:00
parent 6db0f6f80f
commit e45fd9b6c5
4 changed files with 26 additions and 9 deletions

View file

@ -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;