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
abe5e847
Commit
abe5e847
authored
May 15, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Oct 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display.c: factor out confinement window creation
parent
0f8ed4d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
30 deletions
+24
-30
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+24
-30
No files found.
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
abe5e847
...
...
@@ -1105,6 +1105,28 @@ void nxagentResetSignalHandlers(void)
nxagentInitTimer
();
}
/*
* currently unused it seems
*/
void
nxagentOpenConfineWindow
(
void
)
{
nxagentConfineWindow
=
XCreateWindow
(
nxagentDisplay
,
DefaultRootWindow
(
nxagentDisplay
),
0
,
0
,
1
,
1
,
0
,
0
,
InputOnly
,
CopyFromParent
,
0L
,
NULL
);
if
(
nxagentReportWindowIds
)
{
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: CONFINEMENT_WINDOW,WID:[0x%x]
\n
"
,
nxagentConfineWindow
);
}
#ifdef TEST
fprintf
(
stderr
,
"%s: Created agent's confine window with id [0x%x].
\n
"
,
__func__
,
nxagentConfineWindow
);
#endif
}
void
nxagentOpenDisplay
(
int
argc
,
char
*
argv
[])
{
if
(
!
nxagentDoFullGeneration
)
...
...
@@ -1298,21 +1320,7 @@ FIXME: Use of nxagentParentWindow is strongly deprecated. We need
fprintf
(
stderr
,
"nxagentOpenDisplay: Going to create agent's confine window.
\n
"
);
#endif
nxagentConfineWindow
=
XCreateWindow
(
nxagentDisplay
,
DefaultRootWindow
(
nxagentDisplay
),
0
,
0
,
1
,
1
,
0
,
0
,
InputOnly
,
CopyFromParent
,
0L
,
NULL
);
if
(
nxagentReportWindowIds
)
{
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: CONFINEMENT_WINDOW,WID:[0x%x]
\n
"
,
nxagentConfineWindow
);
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentOpenDisplay: Created agent's confine window with id [0x%x].
\n
"
,
nxagentConfineWindow
);
#endif
nxagentOpenConfineWindow
();
if
(
!
(
nxagentUserGeometry
.
flag
&
XValue
))
{
...
...
@@ -2665,21 +2673,7 @@ Bool nxagentReconnectDisplay(void *p0)
fprintf
(
stderr
,
"nxagentReconnectDisplay: Going to create agent's confine window.
\n
"
);
#endif
nxagentConfineWindow
=
XCreateWindow
(
nxagentDisplay
,
DefaultRootWindow
(
nxagentDisplay
),
0
,
0
,
1
,
1
,
0
,
0
,
InputOnly
,
CopyFromParent
,
0L
,
NULL
);
if
(
nxagentReportWindowIds
)
{
fprintf
(
stderr
,
"NXAGENT_WINDOW_ID: CONFINEMENT_WINDOW,WID:[0x%x]
\n
"
,
nxagentConfineWindow
);
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnectDisplay: Created agent's confine window with id [0x%x].
\n
"
,
nxagentConfineWindow
);
#endif
nxagentOpenConfineWindow
();
useXpmIcon
=
nxagentMakeIcon
(
nxagentDisplay
,
&
nxagentIconPixmap
,
&
nxagentIconShape
);
...
...
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