aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-05-05 20:13:20 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-24 09:42:24 +0200
commit0167591986a482dc516d0ae62cda87aa421d4dc9 (patch)
treea3876a5a84c1f29ed62b8af89b8539e12dded14e /nx-X11/programs/Xserver/hw
parentf9bae755424cc413707e9657c8baf84a6cd8effe (diff)
downloadnx-libs-0167591986a482dc516d0ae62cda87aa421d4dc9.tar.gz
nx-libs-0167591986a482dc516d0ae62cda87aa421d4dc9.tar.bz2
nx-libs-0167591986a482dc516d0ae62cda87aa421d4dc9.zip
Screen.c: simplify setting of window name/class
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index c29df9275..db8e713b2 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1812,20 +1812,6 @@ N/A
* we need it to properly display all window parameters by some WMs
* (for example on Maemo)
*/
- if(nxagentX2go)
- {
- #ifdef TEST
- fprintf(stderr, "nxagentOpenScreen: Setting WM_CLASS and WM_NAME for window with id [%ld].\n",
- (long int)nxagentDefaultWindows[pScreen->myNum]);
- #endif
- XClassHint hint;
- hint.res_name = strdup("X2GoAgent");
- hint.res_class = strdup("X2GoAgent");
- XSetClassHint(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], &hint);
- free(hint.res_name);
- free(hint.res_class);
- }
- else
{
#ifdef TEST
fprintf(stderr, "nxagentOpenScreen: Setting WM_CLASS and WM_NAME for window with id [%ld].\n",
@@ -1833,8 +1819,17 @@ N/A
#endif
XClassHint hint;
- hint.res_name = strdup("NXAgent");
- hint.res_class = strdup("NXAgent");
+
+ if(nxagentX2go)
+ {
+ hint.res_name = strdup("X2GoAgent");
+ hint.res_class = strdup("X2GoAgent");
+ }
+ else
+ {
+ hint.res_name = strdup("NXAgent");
+ hint.res_class = strdup("NXAgent");
+ }
XSetClassHint(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], &hint);
free(hint.res_name);
free(hint.res_class);