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
6eed4c42
Commit
6eed4c42
authored
Apr 05, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move the SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE/SC_RESTORE) call after…
winex11: Move the SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE/SC_RESTORE) call after the window extents check.
parent
81aa05ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
event.c
dlls/winex11.drv/event.c
+24
-20
No files found.
dlls/winex11.drv/event.c
View file @
6eed4c42
...
...
@@ -912,25 +912,6 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
hwnd
,
data
->
whole_window
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
if
(
is_net_wm_state_maximized
(
event
->
display
,
data
))
{
if
(
!
IsZoomed
(
data
->
hwnd
))
{
TRACE
(
"win %p/%lx is maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
SendMessageW
(
data
->
hwnd
,
WM_SYSCOMMAND
,
SC_MAXIMIZE
,
0
);
return
;
}
}
else
{
if
(
IsZoomed
(
data
->
hwnd
))
{
TRACE
(
"window %p/%lx is no longer maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
SendMessageW
(
data
->
hwnd
,
WM_SYSCOMMAND
,
SC_RESTORE
,
0
);
return
;
}
}
X11DRV_X_to_window_rect
(
data
,
&
rect
);
if
(
root_coords
)
MapWindowPoints
(
0
,
parent
,
(
POINT
*
)
&
rect
,
2
);
...
...
@@ -953,7 +934,11 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
data
->
window_rect
.
bottom
-
data
->
window_rect
.
top
==
cy
)
||
(
IsRectEmpty
(
&
data
->
window_rect
)
&&
event
->
width
==
1
&&
event
->
height
==
1
))
{
if
(
flags
&
SWP_NOMOVE
)
return
;
/* if nothing changed, don't do anything */
if
(
flags
&
SWP_NOMOVE
)
/* if nothing changed, don't do anything */
{
TRACE
(
"Nothing has changed, ignoring event
\n
"
);
return
;
}
flags
|=
SWP_NOSIZE
;
}
else
...
...
@@ -961,6 +946,25 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
hwnd
,
data
->
window_rect
.
right
-
data
->
window_rect
.
left
,
data
->
window_rect
.
bottom
-
data
->
window_rect
.
top
,
cx
,
cy
);
if
(
is_net_wm_state_maximized
(
event
->
display
,
data
))
{
if
(
!
IsZoomed
(
data
->
hwnd
))
{
TRACE
(
"win %p/%lx is maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
SendMessageW
(
data
->
hwnd
,
WM_SYSCOMMAND
,
SC_MAXIMIZE
,
0
);
return
;
}
}
else
{
if
(
IsZoomed
(
data
->
hwnd
))
{
TRACE
(
"window %p/%lx is no longer maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
SendMessageW
(
data
->
hwnd
,
WM_SYSCOMMAND
,
SC_RESTORE
,
0
);
return
;
}
}
SetWindowPos
(
hwnd
,
0
,
x
,
y
,
cx
,
cy
,
flags
);
}
...
...
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