Commit 2208f4f9 authored by Reinhard Tartler's avatar Reinhard Tartler

Imported nxcompshad-3.4.0-1.tar.gz

Summary: Imported nxcompshad-3.4.0-1.tar.gz Keywords: Imported nxcompshad-3.4.0-1.tar.gz into Git repository
parent 3d8e85c4
ChangeLog:
nxcompshad-3.4.0-1
- Opened the 3.4.0 branch based on nxcompshad-3.3.0-3.
- Updated version number.
- Updated copyright to year 2009.
- Improved error messages logging in case of initialization failures.
nxcompshad-3.3.0-3
- Fixed TR01G02158. Keymap initialization could be incorrect because
......
Copyright (C) 2001, 2007 NoMachine - http://www.nomachine.com/.
Copyright (c) 2001, 2009 NoMachine - http://www.nomachine.com/.
NXCOMPSHAD and NX extensions to X are copyright of NoMachine.
......
/**************************************************************************/
/* */
/* 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 */
......@@ -152,7 +152,7 @@ static int NXCreatePoller(Display *display, Display **shadowDisplay)
if (poller -> init() == -1)
{
logTest("NXCreatePoller", "Failed to initialize poller.");
logWarning("NXCreatePoller", "Failed to initialize poller.");
return -1;
}
......@@ -270,7 +270,7 @@ int NXShadowCreate(void *dpy, char *keymap, char* shadowDisplayName, void **shad
if (NXCreatePoller(display, shadowDisplay) != 1)
{
logTest("NXShadowCreate", "NXCreatePoller failed.");
logWarning("NXShadowCreate", "NXCreatePoller failed.");
return -1;
}
......
/**************************************************************************/
/* */
/* 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment