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
e44a93b0
Commit
e44a93b0
authored
Jan 18, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splash.c: some reformatting
parent
ca531cce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+9
-13
No files found.
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
e44a93b0
...
...
@@ -65,10 +65,6 @@ static void nxagentPaintLogo(XlibWindow win, XlibGC gc, int scale, int width, in
void
nxagentShowSplashWindow
(
XlibWindow
parentWindow
)
{
XWindowAttributes
getAttributes
;
XWindowChanges
values
;
XSetWindowAttributes
attributes
;
/*
* Show splash window only when running as X2Go Agent
*/
...
...
@@ -94,19 +90,19 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
nxagentWMPassed
=
False
;
XWindowAttributes
getAttributes
;
/*
* This would cause a GetWindowAttributes and a
* GetGeometry (asynchronous) reply. We use instead
* the geometry requested by the user for the agent
* window.
* This would cause a GetWindowAttributes and a GetGeometry
* (asynchronous) reply. We use instead the geometry requested by
* the user for the agent window.
*
* XGetWindowAttributes(nxagentDisplay, parentWindow, &getAttributes);
*/
/*
* During reconnection we draw the splash over
* the default window and not over the root
* window because it would be hidden by other
* During reconnection we draw the splash over the default window
* and not over the root window because it would be hidden by other
* windows.
*/
...
...
@@ -145,9 +141,9 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
XlibGC
gc
=
XCreateGC
(
nxagentDisplay
,
nxagentSplashWindow
,
0
,
NULL
);
nxagentPaintLogo
(
nxagentSplashWindow
,
gc
,
1
,
getAttributes
.
width
,
getAttributes
.
height
);
XMapRaised
(
nxagentDisplay
,
nxagentSplashWindow
);
values
.
stack_mode
=
Above
;
XWindowChanges
values
=
{.
stack_mode
=
Above
}
;
XConfigureWindow
(
nxagentDisplay
,
nxagentSplashWindow
,
CWStackMode
,
&
values
);
attributes
.
override_redirect
=
True
;
XSetWindowAttributes
attributes
=
{.
override_redirect
=
True
}
;
XChangeWindowAttributes
(
nxagentDisplay
,
nxagentSplashWindow
,
CWOverrideRedirect
,
&
attributes
);
XFreeGC
(
nxagentDisplay
,
gc
);
...
...
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