Merge pull request #516 from mikkeloscar/remove-panel_size
Remove unused panel_size (and fix rearrange)
This commit is contained in:
commit
e7e1081a93
|
@ -28,7 +28,6 @@ struct desktop_shell_state {
|
||||||
list_t *panels;
|
list_t *panels;
|
||||||
list_t *lock_surfaces;
|
list_t *lock_surfaces;
|
||||||
bool is_locked;
|
bool is_locked;
|
||||||
struct wlc_size panel_size;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct swaylock_state {
|
struct swaylock_state {
|
||||||
|
|
|
@ -93,7 +93,6 @@ static void set_panel(struct wl_client *client, struct wl_resource *resource,
|
||||||
config->surface = wlc_resource_from_wl_surface_resource(surface);
|
config->surface = wlc_resource_from_wl_surface_resource(surface);
|
||||||
config->wl_surface_res = surface;
|
config->wl_surface_res = surface;
|
||||||
wl_resource_set_destructor(surface, panel_surface_destructor);
|
wl_resource_set_destructor(surface, panel_surface_destructor);
|
||||||
desktop_shell.panel_size = *wlc_surface_get_size(config->surface);
|
|
||||||
arrange_windows(&root_container, -1, -1);
|
arrange_windows(&root_container, -1, -1);
|
||||||
wlc_output_schedule_render(config->output);
|
wlc_output_schedule_render(config->output);
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,10 +141,6 @@ static void handle_output_pre_render(wlc_handle output) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
wlc_surface_render(config->surface, &geo);
|
wlc_surface_render(config->surface, &geo);
|
||||||
if (size.w != desktop_shell.panel_size.w || size.h != desktop_shell.panel_size.h) {
|
|
||||||
desktop_shell.panel_size = size;
|
|
||||||
arrange_windows(&root_container, -1, -1);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue