Skip to content

Commit

Permalink
Fix rounded background (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Feb 8, 2024
1 parent 6a39a09 commit 48f09b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Background/BackgroundManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup {
var background = new_content.background.get_data<unowned Background> ("delegate");

if (background.is_loaded) {
new_content.rounded_clip_radius = Utils.scale_to_int (6, wm.get_display ().get_monitor_scale (monitor_index));
swap_background_actor (animate);
return;
}
Expand All @@ -99,6 +100,7 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup {
background.set_data<ulong> ("background-loaded-handler", 0);

swap_background_actor (animate);
new_content.rounded_clip_radius = Utils.scale_to_int (6, wm.get_display ().get_monitor_scale (monitor_index));
});
background.set_data<ulong> ("background-loaded-handler", handler);
}
Expand All @@ -120,8 +122,6 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup {

var monitor = display.get_monitor_geometry (monitor_index);

content.rounded_clip_radius = Utils.scale_to_int (6, display.get_monitor_scale (monitor_index));

if (background_source.should_dim) {
content.vignette = true;
content.brightness = DIM_OPACITY;
Expand Down

0 comments on commit 48f09b1

Please sign in to comment.