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
0bc93684
Commit
0bc93684
authored
Oct 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move the icon window off-screen for managed windows.
parent
3d4db9f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
msg.c
dlls/user32/tests/msg.c
+0
-5
window.c
dlls/winex11.drv/window.c
+12
-3
No files found.
dlls/user32/tests/msg.c
View file @
0bc93684
...
...
@@ -11031,11 +11031,6 @@ static void test_ShowWindow(void)
}
else
{
if
(
wp
.
ptMinPosition
.
x
!=
sw
[
i
].
wp_min
.
x
||
wp
.
ptMinPosition
.
y
!=
sw
[
i
].
wp_min
.
y
)
todo_wine
ok
(
wp
.
ptMinPosition
.
x
==
sw
[
i
].
wp_min
.
x
&&
wp
.
ptMinPosition
.
y
==
sw
[
i
].
wp_min
.
y
,
"expected %d,%d got %d,%d
\n
"
,
sw
[
i
].
wp_min
.
x
,
sw
[
i
].
wp_min
.
y
,
wp
.
ptMinPosition
.
x
,
wp
.
ptMinPosition
.
y
);
else
ok
(
wp
.
ptMinPosition
.
x
==
sw
[
i
].
wp_min
.
x
&&
wp
.
ptMinPosition
.
y
==
sw
[
i
].
wp_min
.
y
,
"expected %d,%d got %d,%d
\n
"
,
sw
[
i
].
wp_min
.
x
,
sw
[
i
].
wp_min
.
y
,
wp
.
ptMinPosition
.
x
,
wp
.
ptMinPosition
.
y
);
}
...
...
dlls/winex11.drv/window.c
View file @
0bc93684
...
...
@@ -2175,7 +2175,7 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
if
(
data
->
mapped
&&
event_type
!=
ReparentNotify
)
{
if
(((
swp_flags
&
SWP_HIDEWINDOW
)
&&
!
(
new_style
&
WS_VISIBLE
))
||
(
!
event_type
&&
(
!
event_type
&&
!
(
new_style
&
WS_MINIMIZE
)
&&
!
is_window_rect_mapped
(
rectWindow
)
&&
is_window_rect_mapped
(
&
old_window_rect
)))
{
release_win_data
(
data
);
...
...
@@ -2241,9 +2241,18 @@ UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_win_data
*
data
=
get_win_data
(
hwnd
);
if
(
!
data
||
!
data
->
whole_window
||
!
data
->
managed
||
!
data
->
mapped
||
data
->
iconic
)
goto
done
;
if
(
style
&
WS_MINIMIZE
)
goto
done
;
if
(
!
data
||
!
data
->
whole_window
||
!
data
->
managed
)
goto
done
;
if
(
IsRectEmpty
(
rect
))
goto
done
;
if
(
style
&
WS_MINIMIZE
)
{
if
(
rect
->
left
!=
-
32000
||
rect
->
top
!=
-
32000
)
{
OffsetRect
(
rect
,
-
32000
-
rect
->
left
,
-
32000
-
rect
->
top
);
swp
&=
~
(
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
);
}
goto
done
;
}
if
(
!
data
->
mapped
||
data
->
iconic
)
goto
done
;
/* only fetch the new rectangle if the ShowWindow was a result of a window manager event */
...
...
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