← Back to team overview

cairo-dock-team team mailing list archive

[Bug 1094825] Re: the dock doesn't hide when a Downloading windows overlaps

 

@fabounet: the problem is that this kind of windows are not tracked by the dock except if this window is active.
What can we do? We can hide it if this window is active:

========
=== modified file 'src/gldit/cairo-dock-applications-manager.c'
--- src/gldit/cairo-dock-applications-manager.c	2013-01-01 14:01:06 +0000
+++ src/gldit/cairo-dock-applications-manager.c	2013-01-01 14:43:06 +0000
@@ -210,8 +210,10 @@
 
 static void _hide_show_if_on_our_way (CairoDock *pDock, Icon *icon)
 {
-	if (pDock->iVisibility != CAIRO_DOCK_VISI_AUTO_HIDE_ON_OVERLAP && ! myDocksParam.bAutoHideOnFullScreen)
-		return ;
+	if (pDock->iVisibility != CAIRO_DOCK_VISI_AUTO_HIDE_ON_OVERLAP
+		&& pDock->iVisibility != CAIRO_DOCK_VISI_AUTO_HIDE_ON_OVERLAP_ANY
+		&& ! myDocksParam.bAutoHideOnFullScreen)
+		return;
 
 	// maybe we have a window without icon in the dock...
 	GtkAllocation *pWindowGeometry;
@@ -226,6 +228,9 @@
 	else
 		pWindowGeometry = NULL;
 
+	if (pDock->iVisibility == CAIRO_DOCK_VISI_AUTO_HIDE_ON_OVERLAP_ANY && pWindowGeometry == NULL)
+		return; // windows without icons in the dock are not tracked except if it's active.
+
 	/* hide the dock if the active window or its parent if this window doesn't
 	 * have any dedicated icon in the dock -> If my window's text editor is
 	 * maximised and then I open a 'Search' box, the dock should not appear
===========


but we need to check if this window has been closed:

-- 
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/1094825

Title:
  the dock doesn't hide when a Downloading windows overlaps

Status in Cairo-Dock : Core:
  In Progress

Bug description:
  Hello, great app.
  Here the bugs I have.

  -> When I download something from the web or from something else, a window appers asking for the path. My dock is set to autohide when a window overlaps and it does. But with downloading windows it doesn't. It is getting annoying.
  -> When I dismount a usb stick, the dock diseapered for few secounds. It is annoying also.

  Cairo-dock version : 3.1.99.alpha0 with openGL
  Ubuntu version : Quantal, 64 bits
  I am not using the Cairo-dock session

  Thank for your work

To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-core/+bug/1094825/+subscriptions


Follow ups

References