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
477c085e
Commit
477c085e
authored
Dec 15, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Potentially update the system tray notification position when any foreign window is moved.
parent
ace20fae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
systray.c
dlls/winex11.drv/systray.c
+4
-4
window.c
dlls/winex11.drv/window.c
+3
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/winex11.drv/systray.c
View file @
477c085e
...
...
@@ -150,7 +150,7 @@ static void create_tooltip(struct tray_icon *icon)
}
}
static
void
update
_balloon_position
(
void
)
void
update_systray
_balloon_position
(
void
)
{
RECT
rect
;
POINT
pos
;
...
...
@@ -187,7 +187,7 @@ static void balloon_create_timer( struct tray_icon *icon )
SendMessageW
(
balloon_window
,
TTM_SETTITLEW
,
icon
->
info_flags
,
(
LPARAM
)
icon
->
info_title
);
balloon_icon
=
icon
;
balloon_pos
.
x
=
balloon_pos
.
y
=
MAXLONG
;
update_balloon_position
();
update_
systray_
balloon_position
();
SendMessageW
(
balloon_window
,
TTM_TRACKACTIVATE
,
TRUE
,
(
LPARAM
)
&
ti
);
KillTimer
(
icon
->
window
,
BALLOON_CREATE_TIMER
);
SetTimer
(
icon
->
window
,
BALLOON_SHOW_TIMER
,
icon
->
info_timeout
,
NULL
);
...
...
@@ -292,7 +292,7 @@ static LRESULT WINAPI standalone_tray_wndproc( HWND hwnd, UINT msg, WPARAM wpara
switch
(
msg
)
{
case
WM_MOVE
:
update_balloon_position
();
update_
systray_
balloon_position
();
break
;
case
WM_CLOSE
:
ShowWindow
(
hwnd
,
SW_HIDE
);
...
...
@@ -419,7 +419,7 @@ static LRESULT WINAPI tray_icon_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR
return
0
;
case
WM_WINDOWPOSCHANGED
:
update_balloon_position
();
update_
systray_
balloon_position
();
break
;
case
WM_TIMER
:
...
...
dlls/winex11.drv/window.c
View file @
477c085e
...
...
@@ -2061,6 +2061,9 @@ static LRESULT WINAPI foreign_window_proc( HWND hwnd, UINT msg, WPARAM wparam, L
{
switch
(
msg
)
{
case
WM_WINDOWPOSCHANGED
:
update_systray_balloon_position
();
break
;
case
WM_PARENTNOTIFY
:
if
(
LOWORD
(
wparam
)
==
WM_DESTROY
)
{
...
...
dlls/winex11.drv/x11drv.h
View file @
477c085e
...
...
@@ -784,6 +784,7 @@ extern void update_user_time( Time time );
extern
void
update_net_wm_states
(
Display
*
display
,
struct
x11drv_win_data
*
data
);
extern
void
make_window_embedded
(
Display
*
display
,
struct
x11drv_win_data
*
data
);
extern
void
change_systray_owner
(
Display
*
display
,
Window
systray_window
);
extern
void
update_systray_balloon_position
(
void
);
extern
HWND
create_foreign_window
(
Display
*
display
,
Window
window
);
static
inline
void
mirror_rect
(
const
RECT
*
window_rect
,
RECT
*
rect
)
...
...
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