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
15c82061
Commit
15c82061
authored
Oct 07, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Use the monitor work area to decide whether a window should be made managed.
parent
41713470
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
window.c
dlls/winex11.drv/window.c
+8
-2
No files found.
dlls/winex11.drv/window.c
View file @
15c82061
...
...
@@ -105,11 +105,17 @@ static BOOL is_window_managed( HWND hwnd, UINT swp_flags, const RECT *window_rec
if
(
style
&
WS_THICKFRAME
)
return
TRUE
;
if
(
style
&
WS_POPUP
)
{
HMONITOR
hmon
;
MONITORINFO
mi
;
/* popup with sysmenu == caption are managed */
if
(
style
&
WS_SYSMENU
)
return
TRUE
;
/* full-screen popup windows are managed */
if
(
window_rect
->
left
<=
0
&&
window_rect
->
right
>=
screen_width
&&
window_rect
->
top
<=
0
&&
window_rect
->
bottom
>=
screen_height
)
hmon
=
MonitorFromWindow
(
hwnd
,
MONITOR_DEFAULTTOPRIMARY
);
mi
.
cbSize
=
sizeof
(
mi
);
GetMonitorInfoW
(
hmon
,
&
mi
);
if
(
window_rect
->
left
<=
mi
.
rcWork
.
left
&&
window_rect
->
right
>=
mi
.
rcWork
.
right
&&
window_rect
->
top
<=
mi
.
rcWork
.
top
&&
window_rect
->
bottom
>=
mi
.
rcWork
.
bottom
)
return
TRUE
;
}
/* application windows are managed */
...
...
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