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
40a4fae6
Commit
40a4fae6
authored
May 01, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXwindow.c: call upstream version UnmapWindow()
parent
5f806ddf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
58 deletions
+5
-58
window.c
nx-X11/programs/Xserver/dix/window.c
+4
-2
NXwindow.c
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+1
-56
No files found.
nx-X11/programs/Xserver/dix/window.c
View file @
40a4fae6
...
...
@@ -2988,9 +2988,12 @@ UnrealizeTree(
* generated. Cannot unmap a root window.
*****/
#ifndef NXAGENT_SERVER
int
#ifdef NXAGENT_SERVER
xorg_UnmapWindow
(
register
WindowPtr
pWin
,
Bool
fromConfigure
)
#else
UnmapWindow
(
register
WindowPtr
pWin
,
Bool
fromConfigure
)
#endif
{
register
WindowPtr
pParent
;
xEvent
event
;
...
...
@@ -3042,7 +3045,6 @@ UnmapWindow(register WindowPtr pWin, Bool fromConfigure)
WindowsRestructured
();
return
(
Success
);
}
#endif
/* NXAGENT_SERVER */
/*****
* UnmapSubwindows
...
...
nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
View file @
40a4fae6
...
...
@@ -857,23 +857,9 @@ MapWindow(register WindowPtr pWin, ClientPtr client)
return
(
Success
);
}
/*****
* UnmapWindow
* If the window is already unmapped, this request has no effect.
* Otherwise, the window is unmapped and an UnMapNotify event is
* generated. Cannot unmap a root window.
*****/
int
UnmapWindow
(
register
WindowPtr
pWin
,
Bool
fromConfigure
)
{
register
WindowPtr
pParent
;
xEvent
event
;
Bool
wasRealized
=
(
Bool
)
pWin
->
realized
;
Bool
wasViewable
=
(
Bool
)
pWin
->
viewable
;
ScreenPtr
pScreen
=
pWin
->
drawable
.
pScreen
;
WindowPtr
pLayerWin
=
pWin
;
#ifdef TEST
if
(
nxagentWindowTopLevel
(
pWin
))
{
...
...
@@ -882,48 +868,7 @@ UnmapWindow(register WindowPtr pWin, Bool fromConfigure)
}
#endif
if
((
!
pWin
->
mapped
)
||
(
!
(
pParent
=
pWin
->
parent
)))
return
(
Success
);
if
(
SubStrSend
(
pWin
,
pParent
)
&&
MapUnmapEventsEnabled
(
pWin
))
{
memset
(
&
event
,
0
,
sizeof
(
xEvent
));
event
.
u
.
u
.
type
=
UnmapNotify
;
event
.
u
.
unmapNotify
.
window
=
pWin
->
drawable
.
id
;
event
.
u
.
unmapNotify
.
fromConfigure
=
fromConfigure
;
DeliverEvents
(
pWin
,
&
event
,
1
,
NullWindow
);
}
if
(
wasViewable
&&
!
fromConfigure
)
{
pWin
->
valdata
=
UnmapValData
;
(
*
pScreen
->
MarkOverlappedWindows
)(
pWin
,
pWin
->
nextSib
,
&
pLayerWin
);
(
*
pScreen
->
MarkWindow
)(
pLayerWin
->
parent
);
}
pWin
->
mapped
=
FALSE
;
if
(
wasRealized
)
UnrealizeTree
(
pWin
,
fromConfigure
);
if
(
wasViewable
)
{
if
(
!
fromConfigure
)
{
(
*
pScreen
->
ValidateTree
)(
pLayerWin
->
parent
,
pWin
,
VTUnmap
);
(
*
pScreen
->
HandleExposures
)(
pLayerWin
->
parent
);
}
#ifdef DO_SAVE_UNDERS
if
(
DO_SAVE_UNDERS
(
pWin
))
{
if
(
(
*
pScreen
->
ChangeSaveUnder
)(
pLayerWin
,
pWin
->
nextSib
)
)
{
(
*
pScreen
->
PostChangeSaveUnder
)(
pLayerWin
,
pWin
->
nextSib
);
}
}
pWin
->
DIXsaveUnder
=
FALSE
;
#endif
/* DO_SAVE_UNDERS */
if
(
!
fromConfigure
&&
pScreen
->
PostValidateTree
)
(
*
pScreen
->
PostValidateTree
)(
pLayerWin
->
parent
,
pWin
,
VTUnmap
);
}
if
(
wasRealized
&&
!
fromConfigure
)
WindowsRestructured
();
return
(
Success
);
return
xorg_UnmapWindow
(
pWin
,
fromConfigure
);
}
void
...
...
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