fix autohiding
This commit is contained in:
parent
596be5028e
commit
c73bd381fe
1 changed files with 1 additions and 3 deletions
|
@ -550,8 +550,6 @@ static gboolean hide_timeout(gpointer data)
|
||||||
|
|
||||||
void dock_hide(gboolean hide)
|
void dock_hide(gboolean hide)
|
||||||
{
|
{
|
||||||
if (dock->hidden == hide || !config_dock_hide)
|
|
||||||
return;
|
|
||||||
if (!hide) {
|
if (!hide) {
|
||||||
/* show */
|
/* show */
|
||||||
dock->hidden = FALSE;
|
dock->hidden = FALSE;
|
||||||
|
@ -559,7 +557,7 @@ void dock_hide(gboolean hide)
|
||||||
|
|
||||||
/* if was hiding, stop it */
|
/* if was hiding, stop it */
|
||||||
ob_main_loop_timeout_remove(ob_main_loop, hide_timeout);
|
ob_main_loop_timeout_remove(ob_main_loop, hide_timeout);
|
||||||
} else {
|
} else if (!dock->hidden && config_dock_hide) {
|
||||||
ob_main_loop_timeout_add(ob_main_loop, config_dock_hide_timeout,
|
ob_main_loop_timeout_add(ob_main_loop, config_dock_hide_timeout,
|
||||||
hide_timeout, NULL, NULL);
|
hide_timeout, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue