aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hotkey_overlay.rs3
-rw-r--r--src/niri.rs7
2 files changed, 7 insertions, 3 deletions
diff --git a/src/hotkey_overlay.rs b/src/hotkey_overlay.rs
index 44aa4f92..84601277 100644
--- a/src/hotkey_overlay.rs
+++ b/src/hotkey_overlay.rs
@@ -45,8 +45,7 @@ pub type HotkeyOverlayRenderElement<R> = RelocateRenderElement<MemoryRenderBuffe
impl HotkeyOverlay {
pub fn new(config: Rc<RefCell<Config>>, comp_mod: CompositorMod) -> Self {
Self {
- // Start the compositor with the overlay open.
- is_open: true,
+ is_open: false,
config,
comp_mod,
buffers: RefCell::new(HashMap::new()),
diff --git a/src/niri.rs b/src/niri.rs
index dc1efd87..d4e39831 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -868,7 +868,12 @@ impl Niri {
let screenshot_ui = ScreenshotUi::new();
let config_error_notification = ConfigErrorNotification::new();
- let hotkey_overlay = HotkeyOverlay::new(config.clone(), backend.mod_key());
+
+ let mut hotkey_overlay = HotkeyOverlay::new(config.clone(), backend.mod_key());
+ if !config_.hotkey_overlay.skip_at_startup {
+ hotkey_overlay.show();
+ }
+
let exit_confirm_dialog = match ExitConfirmDialog::new() {
Ok(x) => Some(x),
Err(err) => {