Commit c0780240 authored by Reinhard Tartler's avatar Reinhard Tartler

Imported nxagent-3.4.0-5.tar.gz

Summary: Imported nxagent-3.4.0-5.tar.gz Keywords: Imported nxagent-3.4.0-5.tar.gz into Git repository
parent d30ef034
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -1208,7 +1208,7 @@ static void nxagentParseOptions(char *name, char *value) ...@@ -1208,7 +1208,7 @@ static void nxagentParseOptions(char *name, char *value)
{ {
nxagentChangeOption(ClientOs, ClientOsSolaris); nxagentChangeOption(ClientOs, ClientOsSolaris);
} }
else if (strcmp(value, "mac") == 0) else if (strcmp(value, "macosx") == 0)
{ {
nxagentChangeOption(ClientOs, ClientOsMac); nxagentChangeOption(ClientOs, ClientOsMac);
} }
...@@ -1512,7 +1512,7 @@ N/A ...@@ -1512,7 +1512,7 @@ N/A
int splitMode = 0; int splitMode = 0;
int splitSize = 0; int splitSize = 0;
unsigned int packMethod = PACK_NONE; unsigned int packMethod = PACK_NONE;
unsigned int packQuality = 9; unsigned int packQuality = 9;
int dataLevel = 0; int dataLevel = 0;
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
ChangeLog: ChangeLog:
nxagent-3.4.0-5
- Updated copyright to year 2010.
nxagent-3.4.0-4
- Fixed TR07F02090. Now XDMCP sessions start without problems.
- Fixed TR08G02259. Corrected window border granularity of rootless
session at reconnection on 64 bit platforms.
- Fixed TR11G02290. Forcing null timeout with queued events only if
display connection is up. This prevents the flood of session log.
- Fixed TR10G02287. Now QueryTree's loop is aborted in case of failure
and session log isn't filled anymore with repeated warning messages.
- Fixed TR01G02154. Corrected window placement when switching between
fullscreen and windowed mode.
- Fixed TR09G02276. Now the agent does not receive unwanted characters
while interacting with the local window manager.
- Implemented FR02G02174. Added ability to do large screen pans in
viewport mode through key combination Ctrl+Alt+Shift+Arrow.
- Corrected parsing of the 'client' option when the client OS is Mac.
nxagent-3.4.0-3 nxagent-3.4.0-3
- Fixed TR09G02271. The array containing the font name fields was not - Fixed TR09G02271. The array containing the font name fields was not
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -679,6 +679,30 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -679,6 +679,30 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
break; break;
} }
case doViewportMoveUp:
{
nxagentMoveViewport(pScreen, 0, -nxagentOption(Height));
break;
}
case doViewportMoveDown:
{
nxagentMoveViewport(pScreen, 0, nxagentOption(Height));
break;
}
case doViewportMoveLeft:
{
nxagentMoveViewport(pScreen, -nxagentOption(Width), 0);
break;
}
case doViewportMoveRight:
{
nxagentMoveViewport(pScreen, nxagentOption(Width), 0);
break;
}
case doViewportUp: case doViewportUp:
{ {
nxagentMoveViewport(pScreen, 0, -nextinc(viewportInc)); nxagentMoveViewport(pScreen, 0, -nextinc(viewportInc));
...@@ -763,6 +787,20 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -763,6 +787,20 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
case KeyRelease: case KeyRelease:
{ {
enum HandleEventResult result; enum HandleEventResult result;
int sendKey = 0;
/*
FIXME: Don't enqueue the KeyRelease event if the key was
not already pressed. This workaround avoids a fake
KeyPress is enqueued by the XKEYBOARD extension.
Another solution would be to let the events are
enqueued and to remove the KeyPress afterwards.
*/
if (inputInfo.keyboard -> key -> down[X.xkey.keycode >> 3] & (1 << (X.xkey.keycode & 7)))
{
sendKey = 1;
}
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentDispatchEvents: Going to handle new KeyRelease event.\n"); fprintf(stderr, "nxagentDispatchEvents: Going to handle new KeyRelease event.\n");
...@@ -808,7 +846,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) ...@@ -808,7 +846,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
x.u.keyButtonPointer.time = nxagentLastEventTime; x.u.keyButtonPointer.time = nxagentLastEventTime;
} }
if (!(nxagentCheckSpecialKeystroke(&X.xkey, &result))) if (!(nxagentCheckSpecialKeystroke(&X.xkey, &result)) && sendKey == 1)
{ {
mieqEnqueue(&x); mieqEnqueue(&x);
...@@ -3101,6 +3139,8 @@ int nxagentHandleReparentNotify(XEvent* X) ...@@ -3101,6 +3139,8 @@ int nxagentHandleReparentNotify(XEvent* X)
#ifdef WARNING #ifdef WARNING
fprintf(stderr, "nxagentHandleReparentNotify: WARNING! Failed QueryTree request.\n"); fprintf(stderr, "nxagentHandleReparentNotify: WARNING! Failed QueryTree request.\n");
#endif #endif
break;
} }
if (result && children_return) if (result && children_return)
...@@ -3153,6 +3193,96 @@ int nxagentHandleReparentNotify(XEvent* X) ...@@ -3153,6 +3193,96 @@ int nxagentHandleReparentNotify(XEvent* X)
return 1; return 1;
} }
else if (nxagentWMIsRunning == 1 && nxagentOption(Fullscreen) == 0 &&
nxagentOption(WMBorderWidth) == -1)
{
XlibWindow w;
XlibWindow rootReturn = 0;
XlibWindow parentReturn = 0;
XlibWindow junk;
XlibWindow *childrenReturn = NULL;
unsigned int nchildrenReturn = 0;
Status result;
XSizeHints hints;
XWindowAttributes attributes;
int x, y;
int xParent, yParent;
/*
* Calculate the absolute upper-left X e Y
*/
if ((XGetWindowAttributes(nxagentDisplay, X -> xreparent.window,
&attributes) == 0))
{
#ifdef WARNING
fprintf(stderr, "nxagentHandleReparentNotify: WARNING! "
"XGetWindowAttributes failed.\n");
#endif
return 1;
}
x = attributes.x;
y = attributes.y;
XTranslateCoordinates(nxagentDisplay, X -> xreparent.window,
attributes.root, -attributes.border_width,
-attributes.border_width, &x, &y, &junk);
/*
* Calculate the parent X and parent Y.
*/
w = X -> xreparent.parent;
if (w != DefaultRootWindow(nxagentDisplay))
{
do
{
result = XQueryTree(nxagentDisplay, w, &rootReturn, &parentReturn,
&childrenReturn, &nchildrenReturn);
if (parentReturn == rootReturn || parentReturn == 0 || result == 0)
{
break;
}
if (result == 1 && childrenReturn != NULL)
{
XFree(childrenReturn);
}
w = parentReturn;
}
while (True);
/*
* WM reparented. Find edge of the frame.
*/
if (XGetWindowAttributes(nxagentDisplay, w, &attributes) == 0)
{
#ifdef WARNING
fprintf(stderr, "nxagentHandleReparentNotify: WARNING! "
"XGetWindowAttributes failed for parent window.\n");
#endif
return 1;
}
xParent = attributes.x;
yParent = attributes.y;
/*
* Difference between Absolute X and Parent X gives thickness of side frame.
* Difference between Absolute Y and Parent Y gives thickness of title bar.
*/
nxagentChangeOption(WMBorderWidth, (x - xParent));
nxagentChangeOption(WMTitleHeight, (y - yParent));
}
}
return 1; return 1;
} }
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -32,6 +32,10 @@ enum HandleEventResult ...@@ -32,6 +32,10 @@ enum HandleEventResult
doCloseSession, doCloseSession,
doStartKbd, doStartKbd,
doSwitchFullscreen, doSwitchFullscreen,
doViewportMoveUp,
doViewportMoveLeft,
doViewportMoveRight,
doViewportMoveDown,
doViewportLeft, doViewportLeft,
doViewportUp, doViewportUp,
doViewportRight, doViewportRight,
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -527,7 +527,8 @@ void nxagentBlockHandler(pointer data, struct timeval **timeout, pointer mask) ...@@ -527,7 +527,8 @@ void nxagentBlockHandler(pointer data, struct timeval **timeout, pointer mask)
synchronize, nxagentReady); synchronize, nxagentReady);
#endif #endif
if (nxagentQueuedEvents(nxagentDisplay) > 0) if (NXDisplayError(nxagentDisplay) == 0 &&
nxagentQueuedEvents(nxagentDisplay) > 0)
{ {
#ifdef WARNING #ifdef WARNING
fprintf(stderr, "nxagentBlockHandler: WARNING! Forcing a null timeout with events queued.\n"); fprintf(stderr, "nxagentBlockHandler: WARNING! Forcing a null timeout with events queued.\n");
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -193,7 +193,7 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[]) ...@@ -193,7 +193,7 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
if (serverGeneration <= 1) if (serverGeneration <= 1)
{ {
fprintf(stderr, "\nNXAGENT - Version " NXAGENT_VERSION "\n\n"); fprintf(stderr, "\nNXAGENT - Version " NXAGENT_VERSION "\n\n");
fprintf(stderr, "Copyright (C) 2001, 2007 NoMachine.\n"); fprintf(stderr, "Copyright (C) 2001, 2010 NoMachine.\n");
fprintf(stderr, "See http://www.nomachine.com/ for more information.\n\n"); fprintf(stderr, "See http://www.nomachine.com/ for more information.\n\n");
fprintf(stderr, "Info: Agent running with pid '%d'.\n", getpid()); fprintf(stderr, "Info: Agent running with pid '%d'.\n", getpid());
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -264,6 +264,58 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result) ...@@ -264,6 +264,58 @@ int nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
#endif #endif
} }
} }
else if ((X -> state & nxagentAltMetaMask) &&
((X -> state & (ControlMask | ShiftMask)) == (ControlMask |
ShiftMask)))
{
switch (sym)
{
case XK_Left:
case XK_KP_Left:
{
if (nxagentOption(Rootless) == 0 &&
nxagentOption(DesktopResize) == 0)
{
*result = doViewportMoveLeft;
}
break;
}
case XK_Up:
case XK_KP_Up:
{
if (nxagentOption(Rootless) == 0 &&
nxagentOption(DesktopResize) == 0)
{
*result = doViewportMoveUp;
}
break;
}
case XK_Right:
case XK_KP_Right:
{
if (nxagentOption(Rootless) == 0 &&
nxagentOption(DesktopResize) == 0)
{
*result = doViewportMoveRight;
}
break;
}
case XK_Down:
case XK_KP_Down:
{
if (nxagentOption(Rootless) == 0 &&
nxagentOption(DesktopResize) == 0)
{
*result = doViewportMoveDown;
}
break;
}
}
}
return (*result == doNothing) ? 0 : 1; return (*result == doNothing) ? 0 : 1;
} }
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
Copyright (c) 2001, 2009 NoMachine - http://www.nomachine.com/. Copyright (c) 2001, 2010 NoMachine - http://www.nomachine.com/.
NXAGENT and NX extensions to X are copyright of NoMachine. NXAGENT and NX extensions to X are copyright of NoMachine.
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -63,6 +63,9 @@ void nxagentInitOptions() ...@@ -63,6 +63,9 @@ void nxagentInitOptions()
nxagentOptions.Height = 0; nxagentOptions.Height = 0;
nxagentOptions.BorderWidth = 0; nxagentOptions.BorderWidth = 0;
nxagentOptions.WMBorderWidth = -1;
nxagentOptions.WMTitleHeight = -1;
nxagentOptions.SavedX = 0; nxagentOptions.SavedX = 0;
nxagentOptions.SavedY = 0; nxagentOptions.SavedY = 0;
nxagentOptions.SavedWidth = 0; nxagentOptions.SavedWidth = 0;
...@@ -168,6 +171,9 @@ void nxagentResetOptions() ...@@ -168,6 +171,9 @@ void nxagentResetOptions()
nxagentOptions.TileWidth = UNDEFINED; nxagentOptions.TileWidth = UNDEFINED;
nxagentOptions.TileHeight = UNDEFINED; nxagentOptions.TileHeight = UNDEFINED;
nxagentOptions.WMBorderWidth = -1;
nxagentOptions.WMTitleHeight = -1;
} }
void nxagentSaveOptions() void nxagentSaveOptions()
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
...@@ -126,6 +126,9 @@ typedef struct _AgentOptions ...@@ -126,6 +126,9 @@ typedef struct _AgentOptions
* screen. * screen.
*/ */
int WMBorderWidth;
int WMTitleHeight;
int SavedX; int SavedX;
int SavedY; int SavedY;
int SavedWidth; int SavedWidth;
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
/**************************************************************************/ /**************************************************************************/
/* */ /* */
/* Copyright (c) 2001, 2009 NoMachine, http://www.nomachine.com/. */ /* Copyright (c) 2001, 2010 NoMachine, http://www.nomachine.com/. */
/* */ /* */
/* NXAGENT, NX protocol compression and NX extensions to this software */ /* NXAGENT, NX protocol compression and NX extensions to this software */
/* are copyright of NoMachine. Redistribution and use of the present */ /* are copyright of NoMachine. Redistribution and use of the present */
......
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