Commit fc380eca authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

fullscreen-box: Fix headerbar autohide

Set default 'autohide' property to true, check if value changed in setter.

Forcefully reveal headerbar if set to false.
parent d9c3dc7c
Pipeline #103514 failed with stages
in 9 minutes and 16 seconds
......@@ -7,10 +7,13 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
public bool is_fullscreen { get; set; }
private bool _autohide;
private bool _autohide = true;
public bool autohide {
get { return _autohide; }
set {
if (autohide == value)
return;
_autohide = value;
if (value) {
......@@ -29,6 +32,7 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
cursor_timeout_id = -1;
}
header_bar_revealer.reveal_child = true;
show_cursor (true);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment