[Xfce4-commits] [xfce/xfwm4] 01/01: client: Fix hostname not showing initially
noreply at xfce.org
noreply at xfce.org
Sun Sep 22 18:45:25 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 5ea89cb90e0e82cbb133fe01b29a1c2fc16e891a
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>
---
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