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

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

commit faa51724b863ad3218b90d37194fe8844b573d77
Author: Olivier Fourdan <four...@xfce.org>
Date:   Sun Sep 22 18:43:24 2019 +0200

    client: Fix hostname not showing initially
    
    Bug: 15984
    
    When running remotely, the hostname would not show in the title initially.
    
    Signed-off-by: Olivier Fourdan <four...@xfce.org>
    (cherry picked from commit 5ea89cb90e0e82cbb133fe01b29a1c2fc16e891a)
---
 src/client.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/client.c b/src/client.c
index a34408f..4286d77 100644
--- a/src/client.c
+++ b/src/client.c
@@ -1589,6 +1589,7 @@ clientFrame (DisplayInfo *display_info, Window w, 
gboolean recapture)
     XSetWindowAttributes attributes;
     Client *c = NULL;
     gboolean shaped;
+    gchar *wm_name;
     unsigned long valuemask;
     long pid;
     int i;
@@ -1660,8 +1661,11 @@ clientFrame (DisplayInfo *display_info, Window w, 
gboolean recapture)
     c->dialog_pid = 0;
     c->dialog_fd = -1;
 
-    getWindowName (display_info, c->window, &c->name);
+    getWindowName (display_info, c->window, &wm_name);
     getWindowHostname (display_info, c->window, &c->hostname);
+    c->name = clientCreateTitleName (c, wm_name, c->hostname);
+    g_free (wm_name);
+
     getTransientFor (display_info, screen_info->xroot, c->window, 
&c->transient_for);
     XChangeSaveSet(display_info->dpy, c->window, SetModeInsert);
 

-- 
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

Reply via email to