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
2108734f
Commit
2108734f
authored
Apr 07, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Get rid of the SetWindowPos hack to unmap systray windows.
parent
3bfa90ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
window.c
dlls/winex11.drv/window.c
+6
-17
No files found.
dlls/winex11.drv/window.c
View file @
2108734f
...
...
@@ -730,31 +730,21 @@ void X11DRV_make_systray_window( HWND hwnd )
{
XEvent
ev
;
unsigned
long
info
[
2
];
/* Put the window offscreen so it isn't mapped. The window _cannot_ be
* mapped if we intend to dock with an XEMBED tray. If the window is
* mapped when we dock, it may become visible as a child of the root
* window after it docks, which isn't the proper behavior.
*
* For more information on this problem, see
* http://standards.freedesktop.org/xembed-spec/latest/ar01s04.html */
SetWindowPos
(
data
->
hwnd
,
NULL
,
virtual_screen_rect
.
right
+
1
,
virtual_screen_rect
.
bottom
+
1
,
0
,
0
,
SWP_NOZORDER
|
SWP_NOSIZE
|
SWP_NOACTIVATE
);
/* the window _cannot_ be mapped if we intend to dock with an XEMBED tray */
if
(
data
->
mapped
)
FIXME
(
"trying to dock mapped window %p
\n
"
,
data
->
hwnd
);
/* set XEMBED protocol data on the window */
info
[
0
]
=
0
;
/* protocol version */
info
[
1
]
=
1
;
/* mapped = true */
wine_tsx11_lock
();
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
_XEMBED_INFO
),
x11drv_atom
(
_XEMBED_INFO
),
32
,
PropModeReplace
,
(
unsigned
char
*
)
info
,
2
);
wine_tsx11_unlock
();
/* send the docking request message */
ZeroMemory
(
&
ev
,
sizeof
(
ev
)
);
ev
.
xclient
.
type
=
ClientMessage
;
ev
.
xclient
.
window
=
systray_window
;
ev
.
xclient
.
message_type
=
x11drv_atom
(
_NET_SYSTEM_TRAY_OPCODE
);
...
...
@@ -764,11 +754,10 @@ void X11DRV_make_systray_window( HWND hwnd )
ev
.
xclient
.
data
.
l
[
2
]
=
data
->
whole_window
;
ev
.
xclient
.
data
.
l
[
3
]
=
0
;
ev
.
xclient
.
data
.
l
[
4
]
=
0
;
wine_tsx11_lock
();
XSendEvent
(
display
,
systray_window
,
False
,
NoEventMask
,
&
ev
);
wine_tsx11_unlock
();
data
->
mapped
=
TRUE
;
}
else
{
...
...
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