[Xfce4-commits] [xfce/xfwm4] 02/03: client: Do not ping client when killing it

noreply at xfce.org noreply at xfce.org
Wed Apr 24 21:51:12 CEST 2019


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

o   l   i   v   i   e   r       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfwm4.

commit c93eb316188aa63184fa7e8d2190c9e4976b84e2
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Apr 24 21:23:26 2019 +0200

    client: Do not ping client when killing it
    
    It does not make sense to ping a client that we just killed.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/client.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/client.c b/src/client.c
index e3d6d9f..28e6b0c 100644
--- a/src/client.c
+++ b/src/client.c
@@ -2638,15 +2638,15 @@ clientClose (Client *c)
     if (FLAG_TEST (c->wm_flags, WM_FLAG_DELETE))
     {
         sendClientMessage (screen_info, c->window, WM_DELETE_WINDOW, timestamp);
+        if (FLAG_TEST (c->wm_flags, WM_FLAG_PING))
+        {
+            clientSendNetWMPing (c, timestamp);
+        }
     }
     else
     {
         clientKill (c);
     }
-    if (FLAG_TEST (c->wm_flags, WM_FLAG_PING))
-    {
-        clientSendNetWMPing (c, timestamp);
-    }
 }
 
 void

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


More information about the Xfce4-commits mailing list