Skip to content

Commit

Permalink
window: Show controls on click
Browse files Browse the repository at this point in the history
progresses #18
  • Loading branch information
bragefuglseth committed Jun 10, 2024
1 parent 7a4dbd6 commit f52dd9d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/widgets/window/ui_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@ impl imp::KpWindow {
}
}
}));

self.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");
}
}));
}

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

0 comments on commit f52dd9d

Please sign in to comment.