Skip to content

Commit

Permalink
window: Fix embarrasing mistake
Browse files Browse the repository at this point in the history
see #18
  • Loading branch information
bragefuglseth committed Jun 10, 2024
1 parent f52dd9d commit 10863ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/widgets/window/ui_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ impl imp::KpWindow {
}

pub(super) fn setup_ui_hiding(&self) {
let obj = self.obj();

self.show_cursor.set(true);

let device = self
.obj()
let device = obj
.display()
.default_seat()
.expect("display always has a default seat")
Expand All @@ -46,14 +47,15 @@ impl imp::KpWindow {
}
}
}));
self.obj().add_controller(motion_ctrl);
obj.add_controller(motion_ctrl);

let click_gesture = gtk::GestureClick::new();
click_gesture.connect_released(glib::clone!(@weak self as imp => move |_, _, _, _| {
if imp.running.get() {
imp.header_bar_running.remove_css_class("hide-controls");
}
}));
obj.add_controller(click_gesture);
}

pub(super) fn ready(&self) {
Expand Down

0 comments on commit 10863ea

Please sign in to comment.