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
498a7628
Commit
498a7628
authored
Apr 08, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Make the system tray window transparent.
parent
52246fb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
systray.c
dlls/winex11.drv/systray.c
+9
-2
No files found.
dlls/winex11.drv/systray.c
View file @
498a7628
...
@@ -223,6 +223,7 @@ static void dock_systray_window( HWND hwnd, Window systray_window )
...
@@ -223,6 +223,7 @@ static void dock_systray_window( HWND hwnd, Window systray_window )
Display
*
display
=
thread_display
();
Display
*
display
=
thread_display
();
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
XEvent
ev
;
XEvent
ev
;
XSetWindowAttributes
attr
;
unsigned
long
info
[
2
];
unsigned
long
info
[
2
];
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
))
&&
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
))
&&
...
@@ -252,6 +253,10 @@ static void dock_systray_window( HWND hwnd, Window systray_window )
...
@@ -252,6 +253,10 @@ static void dock_systray_window( HWND hwnd, Window systray_window )
ev
.
xclient
.
data
.
l
[
3
]
=
0
;
ev
.
xclient
.
data
.
l
[
3
]
=
0
;
ev
.
xclient
.
data
.
l
[
4
]
=
0
;
ev
.
xclient
.
data
.
l
[
4
]
=
0
;
XSendEvent
(
display
,
systray_window
,
False
,
NoEventMask
,
&
ev
);
XSendEvent
(
display
,
systray_window
,
False
,
NoEventMask
,
&
ev
);
attr
.
background_pixmap
=
ParentRelative
;
attr
.
bit_gravity
=
ForgetGravity
;
XChangeWindowAttributes
(
display
,
data
->
whole_window
,
CWBackPixmap
|
CWBitGravity
,
&
attr
);
XChangeWindowAttributes
(
display
,
data
->
client_window
,
CWBackPixmap
|
CWBitGravity
,
&
attr
);
wine_tsx11_unlock
();
wine_tsx11_unlock
();
data
->
mapped
=
TRUE
;
data
->
mapped
=
TRUE
;
...
@@ -295,7 +300,6 @@ static BOOL show_icon( struct tray_icon *icon )
...
@@ -295,7 +300,6 @@ static BOOL show_icon( struct tray_icon *icon )
class
.
lpfnWndProc
=
tray_wndproc
;
class
.
lpfnWndProc
=
tray_wndproc
;
class
.
hCursor
=
LoadCursorW
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
class
.
hCursor
=
LoadCursorW
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
class
.
lpszClassName
=
tray_classname
;
class
.
lpszClassName
=
tray_classname
;
class
.
hbrBackground
=
(
HBRUSH
)
COLOR_WINDOW
;
class
.
style
=
CS_HREDRAW
|
CS_VREDRAW
|
CS_DBLCLKS
;
class
.
style
=
CS_HREDRAW
|
CS_VREDRAW
|
CS_DBLCLKS
;
if
(
!
RegisterClassExW
(
&
class
)
&&
GetLastError
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
if
(
!
RegisterClassExW
(
&
class
)
&&
GetLastError
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
...
@@ -344,7 +348,10 @@ static BOOL modify_icon( struct tray_icon *icon, NOTIFYICONDATAW *nid )
...
@@ -344,7 +348,10 @@ static BOOL modify_icon( struct tray_icon *icon, NOTIFYICONDATAW *nid )
icon
->
image
=
CopyIcon
(
nid
->
hIcon
);
icon
->
image
=
CopyIcon
(
nid
->
hIcon
);
if
(
!
icon
->
hidden
)
if
(
!
icon
->
hidden
)
RedrawWindow
(
icon
->
window
,
NULL
,
NULL
,
RDW_ERASE
|
RDW_INVALIDATE
|
RDW_UPDATENOW
);
{
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
icon
->
window
);
if
(
data
)
XClearArea
(
gdi_display
,
data
->
client_window
,
0
,
0
,
0
,
0
,
True
);
}
}
}
if
(
nid
->
uFlags
&
NIF_MESSAGE
)
if
(
nid
->
uFlags
&
NIF_MESSAGE
)
...
...
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