aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad/X11.cpp
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-11-13 09:53:12 +0100
committerReinhard Tartler <siretart@tauware.de>2011-11-13 09:53:12 +0100
commit2208f4f9ecf967579a364021f0847b3ad1d7777c (patch)
treea0ad1c7418273deaad5d1879c95f18d95e3f3eb3 /nxcompshad/X11.cpp
parent3d8e85c4749ee9e55601f6e540311008bf8f77af (diff)
downloadnx-libs-2208f4f9ecf967579a364021f0847b3ad1d7777c.tar.gz
nx-libs-2208f4f9ecf967579a364021f0847b3ad1d7777c.tar.bz2
nx-libs-2208f4f9ecf967579a364021f0847b3ad1d7777c.zip
Imported nxcompshad-3.4.0-1.tar.gznxcompshad/3.4.0-1
Summary: Imported nxcompshad-3.4.0-1.tar.gz Keywords: Imported nxcompshad-3.4.0-1.tar.gz into Git repository
Diffstat (limited to 'nxcompshad/X11.cpp')
-rw-r--r--nxcompshad/X11.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/nxcompshad/X11.cpp b/nxcompshad/X11.cpp
index 99333b0ec..837efad71 100644
--- a/nxcompshad/X11.cpp
+++ b/nxcompshad/X11.cpp
@@ -1,6 +1,6 @@
/**************************************************************************/
/* */
-/* Copyright (c) 2001, 2007 NoMachine, http://www.nomachine.com/. */
+/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */
/* */
/* NXCOMPSHAD, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */
@@ -1305,17 +1305,19 @@ void Poller::randrInit(void)
int randrEventBase;
int randrErrorBase;
- randrExtension_ = 0;
-
- XRRSelectInput(display_, DefaultRootWindow(display_), RRScreenChangeNotifyMask);
-
if (XRRQueryExtension(display_, &randrEventBase, &randrErrorBase) == 0)
{
- #ifdef PANIC
- fprintf(stderr, "nxagentShadowInit: Randr extension not supported on this display.\n");
- #endif
+ logWarning("Poller::randrInit", "Randr extension not supported on this "
+ "display.");
+
+ randrExtension_ = 0;
+
+ return;
}
+ XRRSelectInput(display_, DefaultRootWindow(display_),
+ RRScreenChangeNotifyMask);
+
randrEventBase_ = randrEventBase;
randrExtension_ = 1;
@@ -1412,7 +1414,7 @@ void Poller::getEvents(void)
{
if (randrExtension_ == 1 && (X.type == randrEventBase_ + RRScreenChangeNotify || X.type == ConfigureNotify))
{
- XRRUpdateConfiguration (&X);
+ XRRUpdateConfiguration(&X);
handleRRScreenChangeNotify(&X);