~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/cairo-dock-dock-manager.c

  • Committer: fabounet
  • Date: 2010-04-18 11:42:02 UTC
  • Revision ID: fabounet03@gmail.com-20100418114202-4dgp7l3vbcage8if
modified the auto-hide when a window covers the dock + removed automake files

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#include "../config.h"
40
40
#include "cairo-dock-applications-manager.h"
 
41
#include "cairo-dock-application-facility.h"
41
42
#include "cairo-dock-class-manager.h"
42
43
#include "cairo-dock-load.h"
43
44
#include "cairo-dock-config.h"
695
696
void cairo_dock_stop_quick_hide (void)
696
697
{
697
698
        cd_message ("");
698
 
        if (s_bTemporaryAutoHide && s_bQuickHide && ((!myAccessibility.bAutoHideOnMaximized && !myAccessibility.bAutoHideOnFullScreen) || cairo_dock_search_window_on_our_way (g_pMainDock, myAccessibility.bAutoHideOnMaximized, myAccessibility.bAutoHideOnFullScreen) == NULL))
 
699
        if (s_bTemporaryAutoHide && s_bQuickHide)
 
700
        {
 
701
                Icon *pActiveAppli = cairo_dock_get_current_active_icon ();
 
702
                if (!_cairo_dock_appli_is_on_our_way (pActiveAppli, g_pMainDock))
 
703
                {
 
704
                        s_bTemporaryAutoHide = FALSE;
 
705
                        g_hash_table_foreach (s_hDocksTable, (GHFunc) _cairo_dock_stop_quick_hide_one_root_dock, NULL);
 
706
                }
 
707
        }
 
708
        /**if (s_bTemporaryAutoHide && s_bQuickHide && ((!myAccessibility.bAutoHideOnOurWay && !myAccessibility.bAutoHideOnFullScreen) || cairo_dock_search_window_on_our_way (g_pMainDock, myAccessibility.bAutoHideOnMaximized, myAccessibility.bAutoHideOnFullScreen) == NULL))
699
709
        {
700
710
                s_bTemporaryAutoHide = FALSE;
701
711
                g_hash_table_foreach (s_hDocksTable, (GHFunc) _cairo_dock_stop_quick_hide_one_root_dock, NULL);
702
 
        }
 
712
        }*/
703
713
        s_bQuickHide = FALSE;
704
714
}
705
715