Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1625b385
Commit
1625b385
authored
Mar 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Support SetWindowPos and ShowWindow on the desktop window.
parent
5f009f25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
winpos.c
dlls/x11drv/winpos.c
+5
-5
No files found.
dlls/x11drv/winpos.c
View file @
1625b385
...
...
@@ -133,7 +133,8 @@ static BOOL SWP_DoWinPosChanging( WINDOWPOS* pWinpos, RECT* pNewWindowRect, RECT
if
(
!
(
pWinpos
->
flags
&
SWP_NOSENDCHANGING
))
SendMessageW
(
pWinpos
->
hwnd
,
WM_WINDOWPOSCHANGING
,
0
,
(
LPARAM
)
pWinpos
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
pWinpos
->
hwnd
))
||
wndPtr
==
WND_OTHER_PROCESS
)
return
FALSE
;
if
(
!
(
wndPtr
=
WIN_GetPtr
(
pWinpos
->
hwnd
))
||
wndPtr
==
WND_OTHER_PROCESS
||
wndPtr
==
WND_DESKTOP
)
return
FALSE
;
/* Calculate new position and size */
...
...
@@ -695,9 +696,6 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
orig_flags
=
winpos
->
flags
;
winpos
->
flags
&=
~
SWP_WINE_NOHOSTMOVE
;
/* Check window handle */
if
(
winpos
->
hwnd
==
GetDesktopWindow
())
return
FALSE
;
/* First make sure that coordinates are valid for WM_WINDOWPOSCHANGING */
if
(
!
(
winpos
->
flags
&
SWP_NOMOVE
))
{
...
...
@@ -936,6 +934,7 @@ UINT WINPOS_MinMaximize( HWND hwnd, UINT cmd, LPRECT rect )
BOOL
X11DRV_ShowWindow
(
HWND
hwnd
,
INT
cmd
)
{
WND
*
wndPtr
;
HWND
parent
;
LONG
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
BOOL
wasVisible
=
(
style
&
WS_VISIBLE
)
!=
0
;
BOOL
showFlag
=
TRUE
;
...
...
@@ -1004,7 +1003,8 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
if
(
!
IsWindow
(
hwnd
))
return
wasVisible
;
}
if
(
!
IsWindowVisible
(
GetAncestor
(
hwnd
,
GA_PARENT
)))
parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
if
(
parent
&&
!
IsWindowVisible
(
parent
))
{
/* if parent is not visible simply toggle WS_VISIBLE and return */
if
(
showFlag
)
WIN_SetStyle
(
hwnd
,
WS_VISIBLE
,
0
);
...
...
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