aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-05-01 16:45:29 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:54:16 +0200
commitbf9e9a8e5f8ae46fc0c4c4937c425f9fa2efe51e (patch)
tree9ae3a84e62b8082f7c6f49b85e679fe1a9d24411 /nx-X11/programs/Xserver/hw
parent08aaec68256b68d872c354a8d1acdbf27bb74254 (diff)
downloadnx-libs-bf9e9a8e5f8ae46fc0c4c4937c425f9fa2efe51e.tar.gz
nx-libs-bf9e9a8e5f8ae46fc0c4c4937c425f9fa2efe51e.tar.bz2
nx-libs-bf9e9a8e5f8ae46fc0c4c4937c425f9fa2efe51e.zip
Screen.c: merge two X2GO ifdefs to one
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 2d4afda14..e13033af1 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1816,13 +1816,6 @@ N/A
#endif
}
-#ifdef X2GO
- /*
- * Setting WM_CLASS to "X2GoAgent" when running in X2Go Agent mode
- * we need it to properly display all window parameters by some WMs
- * (for example on Maemo)
- */
-#endif
{
#ifdef TEST
fprintf(stderr, "%s: Setting WM_CLASS and WM_NAME for window with id [%ld].\n", __func__,
@@ -1834,6 +1827,11 @@ N/A
#ifdef X2GO
if (nxagentX2go)
{
+ /*
+ * Setting WM_CLASS to "X2GoAgent" when running in X2Go Agent mode
+ * we need it to properly display all window parameters by some WMs
+ * (for example on Maemo)
+ */
hint.res_name = strdup("X2GoAgent");
hint.res_class = strdup("X2GoAgent");
}