mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Merge pull request #668 from mikkeloscar/rearrange-on-bg-change
Rearrange output when setting background
This commit is contained in:
commit
d5c004f997
1 changed files with 2 additions and 1 deletions
|
@ -78,11 +78,12 @@ static void set_background(struct wl_client *client, struct wl_resource *resourc
|
|||
config->wl_surface_res = surface;
|
||||
list_add(desktop_shell.backgrounds, config);
|
||||
wl_resource_set_destructor(surface, background_surface_destructor);
|
||||
arrange_windows(swayc_by_handle(output), -1, -1);
|
||||
wlc_output_schedule_render(config->output);
|
||||
}
|
||||
|
||||
static void set_panel(struct wl_client *client, struct wl_resource *resource,
|
||||
struct wl_resource *_output, struct wl_resource *surface) {
|
||||
struct wl_resource *_output, struct wl_resource *surface) {
|
||||
wlc_handle output = wlc_handle_from_wl_output_resource(_output);
|
||||
if (!output) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue