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
6c681405
Commit
6c681405
authored
May 26, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Subtract the tray window from the work area in desktop mode.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5fdcacad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
xinerama.c
dlls/winex11.drv/xinerama.c
+16
-0
No files found.
dlls/winex11.drv/xinerama.c
View file @
6c681405
...
...
@@ -87,6 +87,20 @@ static void query_work_area( RECT *rc_work )
}
}
static
void
query_desktop_work_area
(
RECT
*
rc_work
)
{
static
const
WCHAR
trayW
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'_'
,
'T'
,
'r'
,
'a'
,
'y'
,
'W'
,
'n'
,
'd'
,
0
};
RECT
rect
;
HWND
hwnd
=
FindWindowW
(
trayW
,
NULL
);
if
(
!
hwnd
||
!
IsWindowVisible
(
hwnd
))
return
;
if
(
!
GetWindowRect
(
hwnd
,
&
rect
))
return
;
if
(
rect
.
top
)
rc_work
->
bottom
=
rect
.
top
;
else
rc_work
->
top
=
rect
.
bottom
;
TRACE
(
"found tray %p %s work area %s
\n
"
,
hwnd
,
wine_dbgstr_rect
(
&
rect
),
wine_dbgstr_rect
(
rc_work
));
}
#ifdef SONAME_LIBXINERAMA
#define MAKE_FUNCPTR(f) static typeof(f) * p##f
...
...
@@ -198,6 +212,8 @@ void xinerama_init( unsigned int width, unsigned int height )
default_monitor
.
rcWork
=
default_monitor
.
rcMonitor
=
rect
;
if
(
root_window
==
DefaultRootWindow
(
gdi_display
))
query_work_area
(
&
default_monitor
.
rcWork
);
else
query_desktop_work_area
(
&
default_monitor
.
rcWork
);
nb_monitors
=
1
;
monitors
=
&
default_monitor
;
}
...
...
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