Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
b1c42dc9
Unverified
Commit
b1c42dc9
authored
Feb 05, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/some_cleanups' into 3.6.x
Attributes GH PR #626:
https://github.com/ArcticaProject/nx-libs/pull/626
parents
995350d1
7db6cff1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
51 additions
and
49 deletions
+51
-49
Client.c
nx-X11/programs/Xserver/hw/nxagent/Client.c
+2
-2
Composite.c
nx-X11/programs/Xserver/hw/nxagent/Composite.c
+2
-2
Dialog.c
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
+1
-1
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+4
-3
Handlers.c
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+5
-5
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+7
-6
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+2
-2
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+10
-10
Rootless.c
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+1
-1
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+1
-1
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+6
-6
Split.c
nx-X11/programs/Xserver/hw/nxagent/Split.c
+7
-7
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+3
-3
No files found.
nx-X11/programs/Xserver/hw/nxagent/Client.c
View file @
b1c42dc9
...
...
@@ -517,12 +517,12 @@ void nxagentCheckRestartedClients(struct timeval **timeout)
if
(
FD_ISSET
(
fd
,
&
ClientsWithInput
))
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagent
BlockHandler
: WARNING! Client [%d] with fd [%d] has input.
\n
"
,
fprintf
(
stderr
,
"nxagent
CheckRestartedClients
: WARNING! Client [%d] with fd [%d] has input.
\n
"
,
clients
[
i
]
->
index
,
fd
);
#endif
#ifdef DEBUG
fprintf
(
stderr
,
"nxagent
BlockHandler
: Setting a null timeout with former timeout [%ld] Ms.
\n
"
,
fprintf
(
stderr
,
"nxagent
CheckRestartedClients
: Setting a null timeout with former timeout [%ld] Ms.
\n
"
,
(
*
timeout
)
->
tv_sec
*
1000
+
(
*
timeout
)
->
tv_usec
/
1000
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Composite.c
View file @
b1c42dc9
...
...
@@ -110,7 +110,7 @@ void nxagentCompositeExtensionInit()
#ifdef TEST
else
{
fprintf
(
stderr
,
"nxagent
Render
ExtensionInit: Use of the composite extension not enabled.
\n
"
);
fprintf
(
stderr
,
"nxagent
Composite
ExtensionInit: Use of the composite extension not enabled.
\n
"
);
}
#endif
}
...
...
@@ -188,7 +188,7 @@ void nxagentUnredirectWindow(WindowPtr pWin)
if
(
nxagentWindowPriv
(
pWin
)
->
isRedirected
==
1
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagent
R
edirectWindow: Disabling redirection of window id [%ld] "
fprintf
(
stderr
,
"nxagent
Unr
edirectWindow: Disabling redirection of window id [%ld] "
"to off-screen memory.
\n
"
,
nxagentWindow
(
pWin
));
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Dialog.c
View file @
b1c42dc9
...
...
@@ -91,7 +91,7 @@ void nxagentResetDialog(int pid)
else
if
(
pid
==
nxagentFontsReplacementDialogPid
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagent
FontsReplacementDialog: Resetting fonts replacement dialog pid [%d].
\n
"
,
fprintf
(
stderr
,
"nxagent
ResetDialog: Resetting fonts replacement dialog pid [%d].
\n
"
,
nxagentFontsReplacementDialogPid
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
b1c42dc9
...
...
@@ -3948,7 +3948,7 @@ void nxagentUngrabPointerAndKeyboard(XEvent *X)
XUngrabKeyboard
(
nxagentDisplay
,
now
);
#ifdef TEST
fprintf
(
stderr
,
"nxagent
G
rabPointerAndKeyboard: Going to ungrab the pointer in context [B6].
\n
"
);
fprintf
(
stderr
,
"nxagent
Ung
rabPointerAndKeyboard: Going to ungrab the pointer in context [B6].
\n
"
);
#endif
XUngrabPointer
(
nxagentDisplay
,
now
);
...
...
@@ -3958,10 +3958,11 @@ void nxagentDeactivatePointerGrab()
{
GrabPtr
grab
=
inputInfo
.
pointer
->
grab
;
XButtonEvent
X
;
if
(
grab
)
{
XButtonEvent
X
;
memset
(
&
X
,
0
,
sizeof
(
XButtonEvent
));
X
.
type
=
ButtonRelease
;
X
.
serial
=
0
;
X
.
send_event
=
FALSE
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Handlers.c
View file @
b1c42dc9
...
...
@@ -423,7 +423,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
}
#ifdef TEST
fprintf
(
stderr
,
"nxagent
Dispatch
Handler: Reducing the display buffer to [%d] bytes.
\n
"
,
fprintf
(
stderr
,
"nxagent
Block
Handler: Reducing the display buffer to [%d] bytes.
\n
"
,
nxagentBuffer
);
#endif
...
...
@@ -435,7 +435,7 @@ void nxagentBlockHandler(void * data, struct timeval **timeout, void * mask)
nxagentBuffer
=
nxagentOption
(
DisplayBuffer
);
#ifdef TEST
fprintf
(
stderr
,
"nxagent
Dispatch
Handler: Increasing the display buffer to [%d] bytes.
\n
"
,
fprintf
(
stderr
,
"nxagent
Block
Handler: Increasing the display buffer to [%d] bytes.
\n
"
,
nxagentBuffer
);
#endif
...
...
@@ -590,7 +590,7 @@ void nxagentWakeupHandler(void * data, int count, void * mask)
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagent
Block
Handler: Calling nxagentHandleConnectionStates "
fprintf
(
stderr
,
"nxagent
Wakeup
Handler: Calling nxagentHandleConnectionStates "
"with ioError [%d] sigHup [%d].
\n
"
,
nxagentException
.
ioError
,
nxagentException
.
sigHup
);
#endif
...
...
@@ -743,14 +743,14 @@ void nxagentShadowBlockHandler(void * data, struct timeval **timeout, void * mas
if
(
nxagentSessionState
==
SESSION_DOWN
&&
nxagentOption
(
SleepTime
)
>
0
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentBlockHandler: sleeping for %d milliseconds for slowdown.
\n
"
,
fprintf
(
stderr
,
"nxagent
Shadow
BlockHandler: sleeping for %d milliseconds for slowdown.
\n
"
,
nxagentOption
(
SleepTime
));
#endif
usleep
(
nxagentOption
(
SleepTime
)
*
1000
);
}
#ifdef TEST
else
if
(
0
==
nxagentOption
(
SleepTime
))
{
fprintf
(
stderr
,
"nxagentBlockHandler: not sleeping for slowdown.
\n
"
);
fprintf
(
stderr
,
"nxagent
Shadow
BlockHandler: not sleeping for slowdown.
\n
"
);
}
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
b1c42dc9
...
...
@@ -378,14 +378,14 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
* that the agent is ready.
*/
if
(
!
nxagentWMPassed
&&
(
nxagentWMtimeout
<
currentDispatch
))
{
nxagentRemoveSplashWindow
(
NULL
);
}
if
(
!
nxagentWMPassed
&&
(
nxagentWMtimeout
<
currentDispatch
))
{
nxagentRemoveSplashWindow
(
NULL
);
}
nxagentClients
=
nClients
;
nxagentClients
=
nClients
;
#endif
#endif
if
(
nready
)
{
...
...
@@ -540,6 +540,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
#if defined(DDXBEFORERESET)
ddxBeforeReset
();
#endif
/* FIXME: maybe move the code upto the KillAllClients() call to ddxBeforeReset? */
if
((
dispatchException
&
DE_RESET
)
&&
(
serverGeneration
>
nxagentMaxAllowedResets
))
{
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
b1c42dc9
...
...
@@ -540,7 +540,7 @@ Bool nxagentDestroyVirtualPixmap(PixmapPtr pPixmap)
RegionPtr
nxagentPixmapToRegion
(
PixmapPtr
pPixmap
)
{
#ifdef TEST
fprintf
(
stderr
,
"PixmapToRegion: Pixmap = [%p] nxagentVirtualPixmap = [%p]
\n
"
,
fprintf
(
stderr
,
"
nxagent
PixmapToRegion: Pixmap = [%p] nxagentVirtualPixmap = [%p]
\n
"
,
(
void
*
)
pPixmap
,
(
void
*
)
nxagentVirtualPixmap
(
pPixmap
));
#endif
...
...
@@ -727,7 +727,7 @@ PixmapPtr nxagentPixmapPtr(Pixmap pixmap)
if
(
pair
.
pMap
==
NULL
)
{
fprintf
(
stderr
,
"nxagent
FindPixmap
: WARNING! Failed to find "
fprintf
(
stderr
,
"nxagent
PixmapPtr
: WARNING! Failed to find "
"remote pixmap [%ld].
\n
"
,
(
long
int
)
pair
.
pixmap
);
}
else
if
(
nxagentDrawableStatus
((
DrawablePtr
)
pair
.
pMap
)
==
NotSynchronized
)
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
b1c42dc9
...
...
@@ -463,7 +463,7 @@ Bool nxagentReconnectSession(void)
failedStep
=
DISPLAY_STEP
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: WARNING! Failed display reconnection.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: WARNING! Failed display reconnection.
\n
"
);
#endif
goto
nxagentReconnectError
;
...
...
@@ -491,7 +491,7 @@ Bool nxagentReconnectSession(void)
else
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentReconnect: WARNING! Unable to retrieve all the fonts currently in use. "
fprintf
(
stderr
,
"nxagentReconnect
Session
: WARNING! Unable to retrieve all the fonts currently in use. "
"Missing fonts have been replaced.
\n
"
);
#endif
...
...
@@ -594,7 +594,7 @@ Bool nxagentReconnectSession(void)
#ifdef WARNING
if
(
nxagentVerbose
==
1
)
{
fprintf
(
stderr
,
"nxagentReconnect: Failed to reset keyboard device.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: Failed to reset keyboard device.
\n
"
);
}
#endif
...
...
@@ -638,7 +638,7 @@ Bool nxagentReconnectSession(void)
if
(
nxagentSessionState
!=
SESSION_GOING_UP
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentReconnect: WARNING! Unexpected session state [%s] while reconnecting.
\n
"
,
fprintf
(
stderr
,
"nxagentReconnect
Session
: WARNING! Unexpected session state [%s] while reconnecting.
\n
"
,
DECODE_SESSION_STATE
(
nxagentSessionState
));
#endif
...
...
@@ -666,7 +666,7 @@ Bool nxagentReconnectSession(void)
*/
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: Setting the NX flush policy to deferred.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: Setting the NX flush policy to deferred.
\n
"
);
#endif
NXSetDisplayPolicy
(
nxagentDisplay
,
NXPolicyDeferred
);
...
...
@@ -680,7 +680,7 @@ nxagentReconnectError:
if
(
failedStep
==
DISPLAY_STEP
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: Reconnection failed in display step. Restoring options.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: Reconnection failed in display step. Restoring options.
\n
"
);
#endif
nxagentRestoreOptions
();
...
...
@@ -695,19 +695,19 @@ nxagentReconnectError:
#ifdef WARNING
if
(
nxagentVerbose
==
1
)
{
fprintf
(
stderr
,
"nxagentReconnect: WARNING! The reconnect error message is not set. Failed step is [%d].
\n
"
,
fprintf
(
stderr
,
"nxagentReconnect
Session
: WARNING! The reconnect error message is not set. Failed step is [%d].
\n
"
,
failedStep
);
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: Reconnection failed due to a display error.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: Reconnection failed due to a display error.
\n
"
);
#endif
}
else
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: Reconnection failed with reason '%s'
\n
"
,
fprintf
(
stderr
,
"nxagentReconnect
Session
: Reconnection failed with reason '%s'
\n
"
,
nxagentGetReconnectError
());
#endif
}
...
...
@@ -721,7 +721,7 @@ nxagentReconnectError:
#ifdef TEST
else
{
fprintf
(
stderr
,
"nxagentReconnect: Cannot launch the dialog without a valid display.
\n
"
);
fprintf
(
stderr
,
"nxagentReconnect
Session
: Cannot launch the dialog without a valid display.
\n
"
);
}
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Rootless.c
View file @
b1c42dc9
...
...
@@ -1002,7 +1002,7 @@ void nxagentImportProperty(Window window,
wmHints
.
flags
&=
~
IconWindowHint
;
#ifdef WARNING
fprintf
(
stderr
,
"nxagenImportProperty: WARNING! Failed to look up remote icon "
fprintf
(
stderr
,
"nxagen
t
ImportProperty: WARNING! Failed to look up remote icon "
"window %x from hint importing property [%ld] type %s on window %p.
\n
"
,
(
unsigned
int
)
wmHints
.
icon_window
,
(
long
int
)
property
,
typeS
,
(
void
*
)
pWin
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
b1c42dc9
...
...
@@ -2780,7 +2780,7 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagent
AddXConnection
: Adding the X connection [%d] "
fprintf
(
stderr
,
"nxagent
ShadowInit
: Adding the X connection [%d] "
"to the device set.
\n
"
,
fd
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
b1c42dc9
...
...
@@ -86,14 +86,14 @@ int nxagentShowSplashWindow(Window parentWindow)
GC
gc
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentShowSplash: Got called.
\n
"
);
fprintf
(
stderr
,
"nxagentShowSplash
Window
: Got called.
\n
"
);
#endif
#ifdef NXAGENT_TIMESTAMP
{
extern
unsigned
long
startTime
;
fprintf
(
stderr
,
"nxagentShowSplash: Initializing splash start at [%d] milliseconds.
\n
"
,
fprintf
(
stderr
,
"nxagentShowSplash
Window
: Initializing splash start at [%d] milliseconds.
\n
"
,
GetTimeInMillis
()
-
startTime
);
}
#endif
...
...
@@ -133,7 +133,7 @@ int nxagentShowSplashWindow(Window parentWindow)
getAttributes
.
height
=
nxagentOption
(
RootHeight
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentShowSplash: Going to create new splash window.
\n
"
);
fprintf
(
stderr
,
"nxagentShowSplash
Window
: Going to create new splash window.
\n
"
);
#endif
nxagentSplashWindow
=
...
...
@@ -146,7 +146,7 @@ int nxagentShowSplashWindow(Window parentWindow)
BlackPixel
(
nxagentDisplay
,
0
));
#ifdef TEST
fprintf
(
stderr
,
"nxagentShowSplash: Created new splash window with id [%ld].
\n
"
,
fprintf
(
stderr
,
"nxagentShowSplash
Window
: Created new splash window with id [%ld].
\n
"
,
nxagentSplashWindow
);
#endif
...
...
@@ -162,7 +162,7 @@ int nxagentShowSplashWindow(Window parentWindow)
#ifdef NXAGENT_TIMESTAMP
{
extern
unsigned
long
startTime
;
fprintf
(
stderr
,
"nxagentShowSplash: Splash ends [%d] milliseconds.
\n
"
,
fprintf
(
stderr
,
"nxagentShowSplash
Window
: Splash ends [%d] milliseconds.
\n
"
,
GetTimeInMillis
()
-
startTime
);
}
#endif
...
...
@@ -185,7 +185,7 @@ void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height)
}
#ifdef DEBUG
fprintf
(
stderr
,
"nxagen
Show
tLogo: Got called.
\n
"
);
fprintf
(
stderr
,
"nxagen
tPain
tLogo: Got called.
\n
"
);
#endif
#ifdef NXAGENT_LOGO_DEBUG
...
...
nx-X11/programs/Xserver/hw/nxagent/Split.c
View file @
b1c42dc9
...
...
@@ -492,14 +492,14 @@ void nxagentReleaseSplit(DrawablePtr pDrawable)
"commits are invalid.
\n
"
,
pResource
->
split
);
#endif
FatalError
(
"nxagent
Check
Split: PANIC! Found a region for resource [%d] but the "
FatalError
(
"nxagent
Release
Split: PANIC! Found a region for resource [%d] but the "
"commits are invalid.
\n
"
,
pResource
->
split
);
}
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagent
Validat
eSplit: Aborting the data transfer for resource [%d].
\n
"
,
fprintf
(
stderr
,
"nxagent
Releas
eSplit: Aborting the data transfer for resource [%d].
\n
"
,
pResource
->
split
);
#endif
...
...
@@ -734,7 +734,7 @@ void nxagentWaitDrawable(DrawablePtr pDrawable)
if
(
pResource
==
NULL
)
{
#ifdef TEST
fprintf
(
stderr
,
"
++++++
nxagentWaitDrawable: WARNING! The drawable at [%p] is already awake.
\n
"
,
fprintf
(
stderr
,
"nxagentWaitDrawable: WARNING! The drawable at [%p] is already awake.
\n
"
,
(
void
*
)
pDrawable
);
#endif
...
...
@@ -742,7 +742,7 @@ void nxagentWaitDrawable(DrawablePtr pDrawable)
}
#ifdef TEST
fprintf
(
stderr
,
"
++++++
nxagentWaitDrawable: Waiting drawable at [%p] with resource [%d].
\n
"
,
fprintf
(
stderr
,
"nxagentWaitDrawable: Waiting drawable at [%p] with resource [%d].
\n
"
,
(
void
*
)
pDrawable
,
pResource
->
split
);
#endif
...
...
@@ -786,12 +786,12 @@ void nxagentWaitDrawable(DrawablePtr pDrawable)
if
(
NXDisplayError
(
nxagentDisplay
)
==
1
)
{
fprintf
(
stderr
,
"
++++++
nxagentWaitDrawable: WARNING! Display error detected while "
fprintf
(
stderr
,
"nxagentWaitDrawable: WARNING! Display error detected while "
"waiting for the drawable.
\n
"
);
}
else
{
fprintf
(
stderr
,
"
++++++
nxagentWaitDrawable: Drawable at [%p] can now be restarted.
\n
"
,
fprintf
(
stderr
,
"nxagentWaitDrawable: Drawable at [%p] can now be restarted.
\n
"
,
(
void
*
)
pDrawable
);
}
...
...
@@ -801,7 +801,7 @@ void nxagentWaitDrawable(DrawablePtr pDrawable)
}
#ifdef TEST
fprintf
(
stderr
,
"
++++++
nxagentWaitDrawable: Yielding control to the NX transport.
\n
"
);
fprintf
(
stderr
,
"nxagentWaitDrawable: Yielding control to the NX transport.
\n
"
);
#endif
nxagentWaitEvents
(
nxagentDisplay
,
NULL
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
b1c42dc9
...
...
@@ -283,7 +283,7 @@ Bool nxagentCreateWindow(pWin)
nxagentClearSplash
(
nxagentRootTileWindow
);
}
#ifdef NXAGENT_LOGO_DEBUG
fprintf
(
stderr
,
"nxagent
SplashCount: %d
\n
"
,
nxagentSplashCount
);
fprintf
(
stderr
,
"nxagent
CreateWindow: nxagentSplashCount [%d]
\n
"
,
nxagentSplashCount
);
#endif
if
(
pWin
->
drawable
.
class
==
InputOnly
)
{
...
...
@@ -303,7 +303,7 @@ Bool nxagentCreateWindow(pWin)
attributes
.
backing_store
=
NotUseful
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentCreateWindow: Backing store on window at
%p is %d
.
\n
"
,
fprintf
(
stderr
,
"nxagentCreateWindow: Backing store on window at
[%p] is [%d]
.
\n
"
,
(
void
*
)
pWin
,
attributes
.
backing_store
);
#endif
...
...
@@ -2865,7 +2865,7 @@ Bool nxagentSetWindowCursors(void *p0)
}
#ifdef NXAGENT_RECONNECT_WINDOW_DEBUG
fprintf
(
stderr
,
"nxagent
LoopOverWindow
s: All cursors configured.
\n
"
);
fprintf
(
stderr
,
"nxagent
SetWindowCursor
s: All cursors configured.
\n
"
);
#endif
nxagentReDisplayCurrentCursor
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment