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
1af470a2
You need to sign in or sign up before continuing.
Commit
1af470a2
authored
May 25, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Screen.c: improve output of nxagentPrintAgentGeometry
parent
e48ceedc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+12
-8
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+3
-3
No files found.
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
1af470a2
...
@@ -780,32 +780,36 @@ void nxagentPrintAgentGeometry(char *hdrMessage, char *prefix)
...
@@ -780,32 +780,36 @@ void nxagentPrintAgentGeometry(char *hdrMessage, char *prefix)
if
(
hdrMessage
)
if
(
hdrMessage
)
{
{
fprintf
(
stderr
,
"
--------------- %s -----------------.
\n
"
,
hdrMessage
);
fprintf
(
stderr
,
"
%s /--------------- %s -----------------.
\n
"
,
prefix
,
hdrMessage
);
}
}
fprintf
(
stderr
,
"%s Root window at offset (%d,%d) size (%d,%d).
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Root window at offset (%d,%d) size (%d,%d).
\n
"
,
prefix
,
nxagentOption
(
RootX
),
nxagentOption
(
RootY
),
nxagentOption
(
RootX
),
nxagentOption
(
RootY
),
nxagentOption
(
RootWidth
),
nxagentOption
(
RootHeight
));
nxagentOption
(
RootWidth
),
nxagentOption
(
RootHeight
));
fprintf
(
stderr
,
"%s Default window at offset (%d,%d) size (%d,%d) border size %d.
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Default window at offset (%d,%d) size (%d,%d) border size %d.
\n
"
,
prefix
,
nxagentOption
(
X
),
nxagentOption
(
Y
),
nxagentOption
(
Width
),
nxagentOption
(
Height
),
nxagentOption
(
X
),
nxagentOption
(
Y
),
nxagentOption
(
Width
),
nxagentOption
(
Height
),
nxagentOption
(
BorderWidth
));
nxagentOption
(
BorderWidth
));
fprintf
(
stderr
,
"%s Span between root window and default window is (%d,%d).
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Span between root window and default window is (%d,%d).
\n
"
,
prefix
,
nxagentOption
(
ViewportXSpan
),
nxagentOption
(
ViewportYSpan
));
nxagentOption
(
ViewportXSpan
),
nxagentOption
(
ViewportYSpan
));
fprintf
(
stderr
,
"%s Default window in window mode has offset (%d,%d) and size (%d,%d).
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Default window in window mode has offset (%d,%d) and size (%d,%d).
\n
"
,
prefix
,
nxagentOption
(
SavedX
),
nxagentOption
(
SavedY
),
nxagentOption
(
SavedWidth
),
nxagentOption
(
SavedHeight
));
nxagentOption
(
SavedX
),
nxagentOption
(
SavedY
),
nxagentOption
(
SavedWidth
),
nxagentOption
(
SavedHeight
));
fprintf
(
stderr
,
"%s Fullscreen is %s.
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Fullscreen is %s.
\n
"
,
prefix
,
nxagentOption
(
Fullscreen
)
?
"ON"
:
"OFF"
);
nxagentOption
(
Fullscreen
)
?
"ON"
:
"OFF"
);
fprintf
(
stderr
,
"%s Desktop resize mode is %s.
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Desktop resize mode is %s.
\n
"
,
prefix
,
nxagentOption
(
DesktopResize
)
?
"ON"
:
"OFF"
);
nxagentOption
(
DesktopResize
)
?
"ON"
:
"OFF"
);
fprintf
(
stderr
,
"%s Resize desktop at startup is %s.
\n
"
,
prefix
,
fprintf
(
stderr
,
"%s
|
Resize desktop at startup is %s.
\n
"
,
prefix
,
nxagentResizeDesktopAtStartup
?
"ON"
:
"OFF"
);
nxagentResizeDesktopAtStartup
?
"ON"
:
"OFF"
);
if
(
hdrMessage
)
{
fprintf
(
stderr
,
"%s
\\
--------------- %s -----------------.
\n
"
,
prefix
,
hdrMessage
);
}
#endif
#endif
}
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
1af470a2
...
@@ -417,7 +417,7 @@ Bool nxagentCreateWindow(WindowPtr pWin)
...
@@ -417,7 +417,7 @@ Bool nxagentCreateWindow(WindowPtr pWin)
#endif
#endif
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"
nxagentCreateWindow: Created new window with id [0x%x].
\n
"
,
fprintf
(
stderr
,
"
%s: Created new window with id [0x%x].
\n
"
,
__func__
,
nxagentWindowPriv
(
pWin
)
->
window
);
nxagentWindowPriv
(
pWin
)
->
window
);
#endif
#endif
...
@@ -817,7 +817,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
...
@@ -817,7 +817,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
for
(
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
for
(
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
{
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"
nxagentSwitchAllScreens: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
fprintf
(
stderr
,
"
%s: WARNING! Going to wait for the ReparentNotify event.
\n
"
,
__func__
);
#endif
#endif
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
w
,
ReparentNotify
,
&
e
))
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
w
,
ReparentNotify
,
&
e
))
...
@@ -920,7 +920,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
...
@@ -920,7 +920,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
*/
*/
#ifdef WARNING
#ifdef WARNING
fprintf
(
stderr
,
"
nxagentSwitchAllScreens: WARNING! Expected ReparentNotify event missing.
\n
"
);
fprintf
(
stderr
,
"
%s: WARNING! Expected ReparentNotify event missing.
\n
"
,
__func__
);
#endif
#endif
nxagentWMIsRunning
=
False
;
nxagentWMIsRunning
=
False
;
...
...
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