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
66e981ec
Commit
66e981ec
authored
Jun 11, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Make layered windows transparent for mouse messages.
parent
0d8e7983
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
queue.c
server/queue.c
+1
-1
user.h
server/user.h
+1
-0
window.c
server/window.c
+7
-0
No files found.
server/queue.c
View file @
66e981ec
...
...
@@ -1252,7 +1252,7 @@ static user_handle_t find_hardware_message_window( struct thread_input *input, s
{
if
(
!
input
||
!
(
win
=
input
->
capture
))
{
if
(
!
(
win
=
msg
->
win
)
||
!
is_window_visible
(
win
))
if
(
!
(
win
=
msg
->
win
)
||
!
is_window_visible
(
win
)
||
is_window_transparent
(
win
)
)
{
if
(
input
)
win
=
window_from_point
(
input
->
desktop
,
data
->
x
,
data
->
y
);
}
...
...
server/user.h
View file @
66e981ec
...
...
@@ -135,6 +135,7 @@ extern void destroy_thread_windows( struct thread *thread );
extern
int
is_child_window
(
user_handle_t
parent
,
user_handle_t
child
);
extern
int
is_top_level_window
(
user_handle_t
window
);
extern
int
is_window_visible
(
user_handle_t
window
);
extern
int
is_window_transparent
(
user_handle_t
window
);
extern
int
make_window_active
(
user_handle_t
window
);
extern
struct
thread
*
get_window_thread
(
user_handle_t
handle
);
extern
user_handle_t
window_from_point
(
struct
desktop
*
desktop
,
int
x
,
int
y
);
...
...
server/window.c
View file @
66e981ec
...
...
@@ -602,6 +602,13 @@ int is_window_visible( user_handle_t window )
return
is_visible
(
win
);
}
int
is_window_transparent
(
user_handle_t
window
)
{
struct
window
*
win
=
get_user_object
(
window
,
USER_WINDOW
);
if
(
!
win
)
return
0
;
return
(
win
->
ex_style
&
(
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
))
==
(
WS_EX_LAYERED
|
WS_EX_TRANSPARENT
);
}
/* check if point is inside the window */
static
inline
int
is_point_in_window
(
struct
window
*
win
,
int
x
,
int
y
)
{
...
...
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