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
ae20e50c
Commit
ae20e50c
authored
Jan 19, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splash.c: reduce number of Xlib calls
parent
2e467efb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
Splash.c
nx-X11/programs/Xserver/hw/nxagent/Splash.c
+24
-10
No files found.
nx-X11/programs/Xserver/hw/nxagent/Splash.c
View file @
ae20e50c
...
...
@@ -124,14 +124,21 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
fprintf
(
stderr
,
"%s: Going to create new splash window.
\n
"
,
__func__
);
#endif
XSetWindowAttributes
attributes
=
{
.
override_redirect
=
True
,
.
border_pixel
=
WhitePixel
(
nxagentDisplay
,
0
),
.
background_pixel
=
BlackPixel
(
nxagentDisplay
,
0
)
};
nxagentSplashWindow
=
XCreateSimpleWindow
(
nxagentDisplay
,
parentWindow
,
getAttributes
.
x
,
getAttributes
.
y
,
getAttributes
.
width
,
getAttributes
.
height
,
0
,
WhitePixel
(
nxagentDisplay
,
0
),
BlackPixel
(
nxagentDisplay
,
0
));
XCreateWindow
(
nxagentDisplay
,
parentWindow
,
getAttributes
.
x
,
getAttributes
.
y
,
getAttributes
.
width
,
getAttributes
.
height
,
0
,
CopyFromParent
,
CopyFromParent
,
CopyFromParent
,
CWOverrideRedirect
|
CWBorderPixel
|
CWBackPixel
,
&
attributes
);
#ifdef TEST
fprintf
(
stderr
,
"%s: Created new splash window with id [0x%lx].
\n
"
,
__func__
,
...
...
@@ -139,11 +146,18 @@ void nxagentShowSplashWindow(XlibWindow parentWindow)
#endif
nxagentPaintLogo
(
nxagentSplashWindow
,
1
,
getAttributes
.
width
,
getAttributes
.
height
);
XMapRaised
(
nxagentDisplay
,
nxagentSplashWindow
);
XMapRaised
(
nxagentDisplay
,
nxagentSplashWindow
);
#if 0
/*
* should not be required since XMapRaised takes care of that:
* "The XMapRaised function essentially is similar to XMapWindow in
* that it maps the window and all of its subwindows that have had
* map requests. However, it also raises the specified window to
* the top of the stack."
*/
XWindowChanges values = {.stack_mode = Above};
XConfigureWindow(nxagentDisplay, nxagentSplashWindow, CWStackMode, &values);
XSetWindowAttributes
attributes
=
{.
override_redirect
=
True
};
XChangeWindowAttributes
(
nxagentDisplay
,
nxagentSplashWindow
,
CWOverrideRedirect
,
&
attributes
);
#endif
#ifdef NXAGENT_TIMESTAMP
{
...
...
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