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
5327a85b
You need to sign in or sign up before continuing.
Commit
5327a85b
authored
Oct 28, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXwindow.c: mark NX changes
many functions are almost identical to dix. Mark the minimal changes.
parent
aab723ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+16
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
5327a85b
...
...
@@ -308,6 +308,7 @@ ResizeChildrenWinSize(register WindowPtr pWin, int dx, int dy, int dw, int dh)
SetWinSize
(
pSib
);
SetBorderSize
(
pSib
);
#ifdef NXAGENT_SERVER
/*
* Don't force X to move children. It will position them
* according with gravity.
...
...
@@ -320,6 +321,9 @@ ResizeChildrenWinSize(register WindowPtr pWin, int dx, int dy, int dw, int dh)
*/
nxagentAddConfiguredWindow
(
pSib
,
CW_Update
);
#else
(
*
pScreen
->
PositionWindow
)(
pSib
,
pSib
->
drawable
.
x
,
pSib
->
drawable
.
y
);
#endif
if
(
(
pChild
=
pSib
->
firstChild
)
)
{
...
...
@@ -460,6 +464,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
/* Figure out if the window should be moved. Doesn't
make the changes to the window if event sent */
#ifdef NXAGENT_SERVER
#ifdef TEST
if
(
nxagentWindowTopLevel
(
pWin
))
{
...
...
@@ -481,6 +486,7 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
return
Success
;
}
#endif
if
(
mask
&
CWStackMode
)
pSib
=
WhereDoIGoInTheStack
(
pWin
,
pSib
,
pParent
->
drawable
.
x
+
x
,
...
...
@@ -624,7 +630,9 @@ ActuallyDoSomething:
if
(
action
!=
RESTACK_WIN
)
CheckCursorConfinement
(
pWin
);
#ifdef NXAGENT_SERVER
nxagentFlushConfigureWindow
();
#endif
return
(
Success
);
#undef RESTACK_WIN
...
...
@@ -687,10 +695,12 @@ ReparentWindow(register WindowPtr pWin, register WindowPtr pParent,
pWin
->
parent
=
pParent
;
pPrev
=
RealChildHead
(
pParent
);
#ifdef NXAGENT_SERVER
if
(
pWin
->
parent
==
screenInfo
.
screens
[
0
]
->
root
)
{
nxagentSetTopLevelEventMask
(
pWin
);
}
#endif
if
(
pPrev
)
{
...
...
@@ -756,12 +766,14 @@ MapWindow(register WindowPtr pWin, ClientPtr client)
#endif
WindowPtr
pLayerWin
;
#ifdef NXAGENT_SERVER
#ifdef TEST
if
(
nxagentWindowTopLevel
(
pWin
))
{
fprintf
(
stderr
,
"MapWindow: pWin [%p] client [%p]
\n
"
,
pWin
,
client
);
}
#endif
#endif
if
(
pWin
->
mapped
)
return
(
Success
);
...
...
@@ -852,7 +864,9 @@ MapWindow(register WindowPtr pWin, ClientPtr client)
RegionUninit
(
&
temp
);
}
#ifdef NXAGENT_SERVER
nxagentFlushConfigureWindow
();
#endif
return
(
Success
);
}
...
...
@@ -885,6 +899,7 @@ SaveScreens(int on, int mode)
(
*
screenInfo
.
screens
[
i
]
->
SaveScreen
)
(
screenInfo
.
screens
[
i
],
on
);
if
(
savedScreenInfo
[
i
].
ExternalScreenSaver
)
{
#ifdef NXAGENT_SERVER
if
(
nxagentOption
(
Timeout
)
!=
0
)
{
#ifdef TEST
...
...
@@ -893,6 +908,7 @@ SaveScreens(int on, int mode)
#endif
}
else
#endif
{
if
((
*
savedScreenInfo
[
i
].
ExternalScreenSaver
)
(
screenInfo
.
screens
[
i
],
type
,
on
==
SCREEN_SAVER_FORCER
))
...
...
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