Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1a1bd1aa
Commit
1a1bd1aa
authored
Aug 11, 2000
by
Stephane Lussier
Committed by
Alexandre Julliard
Aug 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instead of not doing the Z ordering when the application asks to place
the window under a zero-sized window, now the window above the zero-sized window, is used to do the Z ordering.
parent
1effe079
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
6 deletions
+49
-6
wnd.c
windows/x11drv/wnd.c
+49
-6
No files found.
windows/x11drv/wnd.c
View file @
1a1bd1aa
...
...
@@ -693,17 +693,60 @@ void X11DRV_WND_SetWindowPos(WND *wndPtr, const WINDOWPOS *winpos, BOOL bChangeP
{
WND
*
insertPtr
=
WIN_FindWndPtr
(
winpos
->
hwndInsertAfter
);
Window
stack
[
2
];
stack
[
0
]
=
X11DRV_WND_FindDesktopXWindow
(
insertPtr
);
stack
[
1
]
=
X11DRV_WND_FindDesktopXWindow
(
winposPtr
);
/* for stupid window managers (i.e. all of them) */
if
(
!
X11DRV_WND_IsZeroSizeWnd
(
insertPtr
))
/* If the window where we should do the insert is zero-sized (not mapped)
don't used this window since it will possibly crash the X server,
use the "non zero-sized" window above */
if
(
X11DRV_WND_IsZeroSizeWnd
(
insertPtr
))
{
/* find the window on top of the zero sized window */
WND
*
pDesktop
=
WIN_GetDesktop
();
WND
*
wndPrev
=
pDesktop
->
child
;
WND
*
wndZeroSized
=
insertPtr
;
while
(
1
)
{
if
(
wndPrev
==
wndZeroSized
)
break
;
/* zero-sized window is on top */
while
(
wndPrev
&&
(
wndPrev
->
next
!=
wndZeroSized
))
wndPrev
=
wndPrev
->
next
;
/* check if the window found is not zero-sized */
if
(
X11DRV_WND_IsZeroSizeWnd
(
wndPrev
))
{
wndZeroSized
=
wndPrev
;
/* restart the search */
wndPrev
=
pDesktop
->
child
;
}
else
break
;
/* "above" window is found */
}
WIN_ReleaseDesktop
();
if
(
wndPrev
==
wndZeroSized
)
{
/* the zero-sized window is on top */
/* so set the window on top */
winChanges
.
stack_mode
=
Above
;
}
else
{
stack
[
0
]
=
X11DRV_WND_FindDesktopXWindow
(
wndPrev
);
stack
[
1
]
=
X11DRV_WND_FindDesktopXWindow
(
winposPtr
);
TSXRestackWindows
(
display
,
stack
,
2
);
changeMask
&=
~
CWStackMode
;
}
}
else
/* Normal behavior, windows are not zero-sized */
{
stack
[
0
]
=
X11DRV_WND_FindDesktopXWindow
(
insertPtr
);
stack
[
1
]
=
X11DRV_WND_FindDesktopXWindow
(
winposPtr
);
TSXRestackWindows
(
display
,
stack
,
2
);
changeMask
&=
~
CWStackMode
;
}
WIN_ReleaseWndPtr
(
insertPtr
);
}
}
...
...
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