[Xfce4-commits] [apps/xfdashboard] 01/01: Check if window is "visible" before trying to find the running application it belongs to in application tracker. "Visible" windows are windows that have not set 'skip-pager' or 'skip-tasklist' flags set but may be hidden or minimized.
noreply at xfce.org
noreply at xfce.org
Tue Mar 1 11:20:56 CET 2016
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 338dc7c570427b48ce138eece202ed2a8bb9bf47
Author: Stephan Haller <nomad at froevel.de>
Date: Tue Mar 1 11:19:15 2016 +0100
Check if window is "visible" before trying to find the running application it belongs to in application tracker. "Visible" windows are windows that have not set 'skip-pager' or 'skip-tasklist' flags set but may be hidden or minimized.
This commit should fix issue GH #114
---
libxfdashboard/application-tracker.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/libxfdashboard/application-tracker.c b/libxfdashboard/application-tracker.c
index 193a6ee..3a9bd60 100644
--- a/libxfdashboard/application-tracker.c
+++ b/libxfdashboard/application-tracker.c
@@ -723,6 +723,27 @@ static void _xfdashboard_application_tracker_on_window_opened(XfdashboardApplica
priv=self->priv;
appInfo=NULL;
+ /* Check if window is "visible" and we should try to find the application
+ * it belongs to. To be "visible" means here that the window should not be
+ * skipped in any tasklist or pager. But hidden or minimized window are
+ * "visible" when looking up running application is meant.
+ */
+ if(xfdashboard_window_tracker_window_is_skip_pager(inWindow))
+ {
+ g_debug("Do not resolve window '%s' as it has skip-pager set.",
+ xfdashboard_window_tracker_window_get_title(inWindow));
+
+ return;
+ }
+
+ if(xfdashboard_window_tracker_window_is_skip_tasklist(inWindow))
+ {
+ g_debug("Do not resolve window '%s' as it has skip-tasklist set.",
+ xfdashboard_window_tracker_window_get_title(inWindow));
+
+ return;
+ }
+
/* Try to find application for window */
appInfo=_xfdashboard_application_tracker_get_desktop_id_from_environment(self, inWindow);
if(!appInfo) appInfo=_xfdashboard_application_tracker_get_desktop_id_from_window_names(self, inWindow);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list