[Xfce4-commits] [xfce/xfwm4] 02/02: netwm: avoid spurious warning on restart

noreply at xfce.org noreply at xfce.org
Tue Mar 21 10:01:40 CET 2017


This is an automated email from the git hooks/post-receive script.

olivier pushed a commit to branch xfce-4.12
in repository xfce/xfwm4.

commit 37b4d438201d08ebe995a0910ce37575c158f54b
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Mar 21 09:56:41 2017 +0100

    netwm: avoid spurious warning on restart
    
    NET_WM_STATE_FOCUS is set by the WM itself, it's not an unknown
    property.
    
    (cherry picked from commit 84ef731d4ccf167886d4d2ed0557ebf8882105d7)
---
 src/netwm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/netwm.c b/src/netwm.c
index 9ef8f73..f44e95b 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -258,6 +258,10 @@ clientGetNetState (Client * c)
                 TRACE ("clientGetNetState : demands_attention");
                 FLAG_SET (c->flags, CLIENT_FLAG_DEMANDS_ATTENTION);
             }
+            else if (atoms[i] == display_info->atoms[NET_WM_STATE_FOCUSED])
+            {
+                TRACE ("clientGetNetState : focused, ignored...");
+            }
             else
             {
                 gchar *atom_name;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list