Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6e85177a
Commit
6e85177a
authored
Jun 22, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Cache the balloon window position.
parent
118810ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
systray.c
programs/explorer/systray.c
+4
-0
No files found.
programs/explorer/systray.c
View file @
6e85177a
...
...
@@ -105,6 +105,7 @@ static WCHAR start_label[50];
static
struct
icon
*
balloon_icon
;
static
HWND
balloon_window
;
static
POINT
balloon_pos
;
#define MIN_DISPLAYED 8
#define ICON_BORDER 2
...
...
@@ -211,6 +212,8 @@ static void update_systray_balloon_position(void)
GetWindowRect
(
balloon_icon
->
window
,
&
rect
);
pos
.
x
=
(
rect
.
left
+
rect
.
right
)
/
2
;
pos
.
y
=
(
rect
.
top
+
rect
.
bottom
)
/
2
;
if
(
pos
.
x
==
balloon_pos
.
x
&&
pos
.
y
==
balloon_pos
.
y
)
return
;
/* nothing changed */
balloon_pos
=
pos
;
SendMessageW
(
balloon_window
,
TTM_TRACKPOSITION
,
0
,
MAKELONG
(
pos
.
x
,
pos
.
y
));
}
...
...
@@ -236,6 +239,7 @@ static void balloon_create_timer( struct icon *icon )
else
SendMessageW
(
balloon_window
,
TTM_SETTITLEW
,
icon
->
info_flags
,
(
LPARAM
)
icon
->
info_title
);
balloon_icon
=
icon
;
balloon_pos
.
x
=
balloon_pos
.
y
=
MAXLONG
;
update_systray_balloon_position
();
SendMessageW
(
balloon_window
,
TTM_TRACKACTIVATE
,
TRUE
,
(
LPARAM
)
&
ti
);
KillTimer
(
icon
->
window
,
BALLOON_CREATE_TIMER
);
...
...
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