mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: Add view_reload_ssd()
Gather related logic from `reload_config_and_theme()` in `server.c` and `ssd_reload()` in `ssd.c` into a new function, `view_reload_ssd()`. Also drop the `view->mapped` check since we want to update any view that has SSD nodes created, mapped or not.
This commit is contained in:
parent
b150e11cd3
commit
ac9228e7f8
5 changed files with 12 additions and 16 deletions
|
|
@ -16,7 +16,6 @@
|
|||
#include "labwc.h"
|
||||
#include "layers.h"
|
||||
#include "menu/menu.h"
|
||||
#include "ssd.h"
|
||||
#include "theme.h"
|
||||
#include "view.h"
|
||||
#include "workspaces.h"
|
||||
|
|
@ -40,10 +39,7 @@ reload_config_and_theme(void)
|
|||
|
||||
struct view *view;
|
||||
wl_list_for_each(view, &g_server->views, link) {
|
||||
if (!view->mapped || !view->ssd_enabled) {
|
||||
continue;
|
||||
}
|
||||
ssd_reload(view);
|
||||
view_reload_ssd(view);
|
||||
}
|
||||
|
||||
menu_reconfigure(g_server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue