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
47c54c4a
Commit
47c54c4a
authored
Sep 28, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fullscreen windows are never maximized.
Some window managers incorrectly set maximized state on fullscreen windows.
parent
5087cb19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
event.c
dlls/winex11.drv/event.c
+6
-4
No files found.
dlls/winex11.drv/event.c
View file @
47c54c4a
...
...
@@ -998,6 +998,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
HWND
parent
;
BOOL
root_coords
;
int
cx
,
cy
,
x
=
event
->
x
,
y
=
event
->
y
;
DWORD
style
;
if
(
!
hwnd
)
return
;
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
...
...
@@ -1061,9 +1062,10 @@ 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
))
style
=
GetWindowLongW
(
data
->
hwnd
,
GWL_STYLE
);
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
&&
is_net_wm_state_maximized
(
event
->
display
,
data
))
{
if
(
!
IsZoomed
(
data
->
hwnd
))
if
(
!
(
style
&
WS_MAXIMIZE
))
{
TRACE
(
"win %p/%lx is maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
release_win_data
(
data
);
...
...
@@ -1073,7 +1075,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
}
else
{
if
(
IsZoomed
(
data
->
hwnd
)
)
if
(
style
&
WS_MAXIMIZE
)
{
TRACE
(
"window %p/%lx is no longer maximized
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
release_win_data
(
data
);
...
...
@@ -1198,7 +1200,7 @@ static void handle_wm_state_notify( HWND hwnd, XPropertyEvent *event, BOOL updat
if
(
data
->
iconic
&&
data
->
wm_state
==
NormalState
)
/* restore window */
{
data
->
iconic
=
FALSE
;
if
(
is_net_wm_state_maximized
(
event
->
display
,
data
))
if
(
(
style
&
WS_CAPTION
)
==
WS_CAPTION
&&
is_net_wm_state_maximized
(
event
->
display
,
data
))
{
if
((
style
&
WS_MAXIMIZEBOX
)
&&
!
(
style
&
WS_DISABLED
))
{
...
...
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