mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
ssd: following coding style
This commit is contained in:
parent
e08f8af667
commit
42faf94973
1 changed files with 4 additions and 4 deletions
|
|
@ -293,15 +293,15 @@ ssd_shadow_update(struct ssd *ssd)
|
|||
bool maximized = view->maximized == VIEW_AXIS_BOTH;
|
||||
bool tiled_shadows = false;
|
||||
if (rc.shadows_on_tiled) {
|
||||
if (rc.gap >= theme->window[THEME_ACTIVE].shadow_size &&
|
||||
rc.gap >= theme->window[THEME_INACTIVE].shadow_size) {
|
||||
if (rc.gap >= theme->window[THEME_ACTIVE].shadow_size
|
||||
&& rc.gap >= theme->window[THEME_INACTIVE].shadow_size) {
|
||||
tiled_shadows = true;
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "gap size < shadow_size, ignore rc.shadows_ontiled");
|
||||
}
|
||||
};
|
||||
bool show_shadows = rc.shadows_enabled && !maximized &&
|
||||
(!view_is_tiled(ssd->view) || tiled_shadows);
|
||||
bool show_shadows = rc.shadows_enabled && !maximized
|
||||
&& (!view_is_tiled(ssd->view) || tiled_shadows);
|
||||
wlr_scene_node_set_enabled(&ssd->shadow.tree->node, show_shadows);
|
||||
if (show_shadows) {
|
||||
set_shadow_geometry(ssd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue