[Xfce4-commits] [xfce/xfwm4] 08/18: client: Fix hostname not showing initially

noreply at xfce.org noreply at xfce.org
Sat Apr 11 17:58:44 CEST 2020


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       x   f   c   e   -   4   .   1   4   
   in repository xfce/xfwm4.

commit faa51724b863ad3218b90d37194fe8844b573d77
Author: Olivier Fourdan <fourdan at 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 <fourdan at 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.


More information about the Xfce4-commits mailing list