aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs
index f3f5396a..0510d919 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -860,6 +860,7 @@ impl State {
let mut output_config_changed = false;
let mut window_rules_changed = false;
let mut debug_config_changed = false;
+ let mut shaders_changed = false;
let mut old_config = self.niri.config.borrow_mut();
// Reload the cursor.
@@ -916,6 +917,7 @@ impl State {
self.backend.with_primary_renderer(|renderer| {
shaders::set_custom_resize_program(renderer, src);
});
+ shaders_changed = true;
}
if config.debug != old_config.debug {
@@ -1018,6 +1020,10 @@ impl State {
}
}
+ if shaders_changed {
+ self.niri.layout.update_shaders();
+ }
+
// Can't really update xdg-decoration settings since we have to hide the globals for CSD
// due to the SDL2 bug... I don't imagine clients are prepared for the xdg-decoration
// global suddenly appearing? Either way, right now it's live-reloaded in a sense that new