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
1cfed892
Commit
1cfed892
authored
Sep 17, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add window data locking to the mouse functions.
parent
9db35b9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mouse.c
dlls/winex11.drv/mouse.c
+7
-3
No files found.
dlls/winex11.drv/mouse.c
View file @
1cfed892
...
@@ -488,15 +488,18 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset )
...
@@ -488,15 +488,18 @@ BOOL clip_fullscreen_window( HWND hwnd, BOOL reset )
struct
x11drv_thread_data
*
thread_data
;
struct
x11drv_thread_data
*
thread_data
;
RECT
rect
;
RECT
rect
;
DWORD
style
;
DWORD
style
;
BOOL
fullscreen
;
if
(
hwnd
==
GetDesktopWindow
())
return
FALSE
;
if
(
hwnd
==
GetDesktopWindow
())
return
FALSE
;
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
return
FALSE
;
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
(
!
(
style
&
WS_VISIBLE
))
return
FALSE
;
if
(
!
(
style
&
WS_VISIBLE
))
return
FALSE
;
if
((
style
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
return
FALSE
;
if
((
style
&
(
WS_POPUP
|
WS_CHILD
))
==
WS_CHILD
)
return
FALSE
;
/* maximized windows don't count as full screen */
/* maximized windows don't count as full screen */
if
((
style
&
WS_MAXIMIZE
)
&&
(
style
&
WS_CAPTION
)
==
WS_CAPTION
)
return
FALSE
;
if
((
style
&
WS_MAXIMIZE
)
&&
(
style
&
WS_CAPTION
)
==
WS_CAPTION
)
return
FALSE
;
if
(
!
is_window_rect_fullscreen
(
&
data
->
whole_rect
))
return
FALSE
;
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
FALSE
;
fullscreen
=
is_window_rect_fullscreen
(
&
data
->
whole_rect
);
release_win_data
(
data
);
if
(
!
fullscreen
)
return
FALSE
;
if
(
!
(
thread_data
=
x11drv_thread_data
()))
return
FALSE
;
if
(
!
(
thread_data
=
x11drv_thread_data
()))
return
FALSE
;
if
(
GetTickCount
()
-
thread_data
->
clip_reset
<
1000
)
return
FALSE
;
if
(
GetTickCount
()
-
thread_data
->
clip_reset
<
1000
)
return
FALSE
;
if
(
!
reset
&&
clipping_cursor
&&
thread_data
->
clip_hwnd
)
return
FALSE
;
/* already clipping */
if
(
!
reset
&&
clipping_cursor
&&
thread_data
->
clip_hwnd
)
return
FALSE
;
/* already clipping */
...
@@ -541,7 +544,7 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
...
@@ -541,7 +544,7 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
return
;
return
;
}
}
if
(
!
(
data
=
X11DRV_
get_win_data
(
hwnd
)))
return
;
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
if
(
window
==
data
->
whole_window
)
if
(
window
==
data
->
whole_window
)
{
{
...
@@ -565,6 +568,7 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
...
@@ -565,6 +568,7 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU
sync_window_cursor
(
data
->
whole_window
);
sync_window_cursor
(
data
->
whole_window
);
last_cursor_change
=
input
->
u
.
mi
.
time
;
last_cursor_change
=
input
->
u
.
mi
.
time
;
}
}
release_win_data
(
data
);
if
(
hwnd
!=
GetDesktopWindow
())
if
(
hwnd
!=
GetDesktopWindow
())
{
{
...
...
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