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

2017-03-21 Thread noreply
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 
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.
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits


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

2017-03-21 Thread noreply
This is an automated email from the git hooks/post-receive script.

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

commit 84ef731d4ccf167886d4d2ed0557ebf8882105d7
Author: Olivier Fourdan 
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.
---
 src/netwm.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/src/netwm.c b/src/netwm.c
index e8a0bda..7f48bea 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.
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits