29
29
#include "cairo-dock-dialog-manager.h"
30
30
#include "cairo-dock-animations.h"
31
31
#include "cairo-dock-applications-manager.h"
32
#include "cairo-dock-application-facility.h"
32
33
#define _INTERNAL_MODULE_
33
34
#include "cairo-dock-internal-accessibility.h"
34
35
#include "cairo-dock-dock-facility.h"
57
58
pAccessibility->bAutoHide = g_key_file_get_boolean (pKeyFile, "Accessibility", "auto-hide", NULL);
58
59
if (! pAccessibility->bAutoHide)
60
pAccessibility->bAutoHideOnMaximized = g_key_file_get_boolean (pKeyFile, "Accessibility", "auto quick hide on max", NULL);
61
if (pAccessibility->bAutoHideOnMaximized)
61
pAccessibility->bAutoHideOnOverlap = g_key_file_get_boolean (pKeyFile, "Accessibility", "auto quick hide on max", NULL);
62
if (pAccessibility->bAutoHideOnOverlap)
62
63
iAccessibility = 4;
63
64
else if (cShortkey)
225
226
//\_______________ Auto-Hide
229
if (pAccessibility->bAutoHideOnFullScreen != pPrevAccessibility->bAutoHideOnFullScreen ||
230
pAccessibility->bAutoHideOnOverlap != pPrevAccessibility->bAutoHideOnOverlap)
232
Icon *pActiveAppli = cairo_dock_get_current_active_icon ();
233
if (!_cairo_dock_appli_is_on_our_way (pActiveAppli, pDock))
235
if (cairo_dock_quick_hide_is_activated () && !pDock->bAutoHide)
237
cd_message (" => aucune fenetre n'est desormais genante");
238
cairo_dock_deactivate_temporary_auto_hide ();
243
if (! cairo_dock_quick_hide_is_activated ())
245
cd_message (" => une fenetre desormais genante");
246
cairo_dock_activate_temporary_auto_hide ();
249
/**if ((!pAccessibility->bAutoHideOnOverlap && ! pAccessibility->bAutoHideOnFullScreen) || cairo_dock_search_window_on_our_way (pDock, pAccessibility->bAutoHideOnMaximized, pAccessibility->bAutoHideOnFullScreen) == NULL)
251
if (cairo_dock_quick_hide_is_activated () && !pDock->bAutoHide)
253
cd_message (" => aucune fenetre n'est desormais genante");
254
cairo_dock_deactivate_temporary_auto_hide ();
259
if (! cairo_dock_quick_hide_is_activated ())
261
cd_message (" => une fenetre desormais genante");
262
cairo_dock_activate_temporary_auto_hide ();
228
267
if (! pAccessibility->bAutoHide && pPrevAccessibility->bAutoHide)
230
pDock->bAutoHide = pAccessibility->bAutoHide;
269
pDock->bAutoHideInitialValue = pDock->bAutoHide = pAccessibility->bAutoHide;
231
270
cairo_dock_start_showing (pDock);
233
272
else if (pAccessibility->bAutoHide && ! pPrevAccessibility->bAutoHide)
235
pDock->bAutoHide = pAccessibility->bAutoHide;
274
pDock->bAutoHideInitialValue = pDock->bAutoHide = pAccessibility->bAutoHide;
236
275
cairo_dock_start_hiding (pDock);
239
if (pAccessibility->bAutoHideOnFullScreen != pPrevAccessibility->bAutoHideOnFullScreen ||
240
pAccessibility->bAutoHideOnMaximized != pPrevAccessibility->bAutoHideOnMaximized)
242
if ((!pAccessibility->bAutoHideOnMaximized && ! pAccessibility->bAutoHideOnFullScreen) || cairo_dock_search_window_on_our_way (pDock, pAccessibility->bAutoHideOnMaximized, pAccessibility->bAutoHideOnFullScreen) == NULL)
244
if (cairo_dock_quick_hide_is_activated () && !pDock->bAutoHide)
246
cd_message (" => aucune fenetre n'est desormais genante");
247
cairo_dock_deactivate_temporary_auto_hide ();
252
if (! cairo_dock_quick_hide_is_activated ())
254
cd_message (" => une fenetre desormais genante");
255
cairo_dock_activate_temporary_auto_hide ();