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
94cc17b5
Commit
94cc17b5
authored
May 19, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Fix the regression caused by the recent ShowWindow fixes.
parent
4cd377d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
winpos.c
dlls/x11drv/winpos.c
+7
-8
No files found.
dlls/x11drv/winpos.c
View file @
94cc17b5
...
@@ -962,14 +962,15 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
...
@@ -962,14 +962,15 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
break
;
break
;
case
SW_MINIMIZE
:
case
SW_SHOWMINNOACTIVE
:
case
SW_SHOWMINNOACTIVE
:
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
/* fall through */
/* fall through */
case
SW_SHOWMINIMIZED
:
case
SW_MINIMIZE
:
case
SW_FORCEMINIMIZE
:
/* FIXME: Does not work if thread is hung. */
case
SW_FORCEMINIMIZE
:
/* FIXME: Does not work if thread is hung. */
swp
|=
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
;
if
(
style
&
WS_CHILD
)
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
/* fall through */
/* fall through */
case
SW_SHOWMINIMIZED
:
swp
|=
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
;
swp
|=
WINPOS_MinMaximize
(
hwnd
,
cmd
,
&
newPos
);
swp
|=
WINPOS_MinMaximize
(
hwnd
,
cmd
,
&
newPos
);
if
(
style
&
WS_MINIMIZE
)
return
wasVisible
;
if
(
style
&
WS_MINIMIZE
)
return
wasVisible
;
state_change
=
TRUE
;
state_change
=
TRUE
;
...
@@ -989,6 +990,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
...
@@ -989,6 +990,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
case
SW_SHOW
:
case
SW_SHOW
:
if
(
wasVisible
)
return
TRUE
;
if
(
wasVisible
)
return
TRUE
;
swp
|=
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
;
swp
|=
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
;
if
(
style
&
WS_CHILD
)
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
break
;
break
;
case
SW_RESTORE
:
case
SW_RESTORE
:
...
@@ -1001,10 +1003,10 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
...
@@ -1001,10 +1003,10 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
case
SW_SHOWNORMAL
:
/* same as SW_NORMAL: */
case
SW_SHOWNORMAL
:
/* same as SW_NORMAL: */
case
SW_SHOWDEFAULT
:
/* FIXME: should have its own handler */
case
SW_SHOWDEFAULT
:
/* FIXME: should have its own handler */
swp
|=
SWP_SHOWWINDOW
;
swp
|=
SWP_SHOWWINDOW
;
if
(
style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))
if
(
style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))
swp
|=
WINPOS_MinMaximize
(
hwnd
,
SW_RESTORE
,
&
newPos
);
swp
|=
WINPOS_MinMaximize
(
hwnd
,
SW_RESTORE
,
&
newPos
);
else
swp
|=
SWP_NOSIZE
|
SWP_NOMOVE
;
else
swp
|=
SWP_NOSIZE
|
SWP_NOMOVE
;
if
(
style
&
WS_CHILD
)
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
break
;
break
;
}
}
...
@@ -1023,12 +1025,9 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
...
@@ -1023,12 +1025,9 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
}
}
else
else
{
{
/* ShowWindow won't activate a not being maximized child window */
if
(
style
&
WS_CHILD
)
if
(
style
&
WS_CHILD
)
{
{
if
(
!
state_change
)
if
(
state_change
)
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
else
{
{
/* it appears that Windows always adds an undocumented 0x8000
/* it appears that Windows always adds an undocumented 0x8000
* flag if the state of a window changes.
* flag if the state of a window changes.
...
...
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