mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: optimize layer blur exclude judge
This commit is contained in:
parent
063d5b27f5
commit
90ff65c9f4
1 changed files with 2 additions and 4 deletions
|
|
@ -3085,7 +3085,8 @@ void commitlayersurfacenotify(struct wl_listener *listener, void *data) {
|
||||||
if (config.layer_rules_count < 1)
|
if (config.layer_rules_count < 1)
|
||||||
break;
|
break;
|
||||||
if (strcmp(config.layer_rules[ji].layer_name,
|
if (strcmp(config.layer_rules[ji].layer_name,
|
||||||
l->layer_surface->namespace) == 0) {
|
l->layer_surface->namespace) == 0 &&
|
||||||
|
config.layer_rules[ji].noblur) {
|
||||||
exclude_blur = true;
|
exclude_blur = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -3096,7 +3097,6 @@ void commitlayersurfacenotify(struct wl_listener *listener, void *data) {
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM &&
|
ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM &&
|
||||||
wlr_layer_surface->current.layer !=
|
wlr_layer_surface->current.layer !=
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND) {
|
ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND) {
|
||||||
wlr_log(WLR_ERROR, "st");
|
|
||||||
|
|
||||||
wlr_scene_node_for_each_buffer(&l->scene->node,
|
wlr_scene_node_for_each_buffer(&l->scene->node,
|
||||||
iter_layer_scene_buffers, l);
|
iter_layer_scene_buffers, l);
|
||||||
|
|
@ -3108,8 +3108,6 @@ void commitlayersurfacenotify(struct wl_listener *listener, void *data) {
|
||||||
if (wlr_layer_surface->current.layer ==
|
if (wlr_layer_surface->current.layer ==
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND) {
|
ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND) {
|
||||||
if (l->mon) {
|
if (l->mon) {
|
||||||
wlr_log(WLR_ERROR, "dirty");
|
|
||||||
|
|
||||||
wlr_scene_optimized_blur_mark_dirty(l->mon->blur);
|
wlr_scene_optimized_blur_mark_dirty(l->mon->blur);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue