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
bb043fb6
Commit
bb043fb6
authored
May 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove now unnecessary WM_X11DRV_CLIP_CURSOR_NOTIFY.
parent
5911f36c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
46 deletions
+7
-46
mouse.c
dlls/winex11.drv/mouse.c
+7
-42
window.c
dlls/winex11.drv/window.c
+0
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-2
No files found.
dlls/winex11.drv/mouse.c
View file @
bb043fb6
...
...
@@ -442,7 +442,6 @@ static BOOL grab_clipping_window( const RECT *clip )
if
(
!
data
->
clip_hwnd
)
sync_window_cursor
(
clip_window
);
InterlockedExchangePointer
(
(
void
**
)
&
cursor_window
,
msg_hwnd
);
data
->
clip_hwnd
=
msg_hwnd
;
send_notify_message
(
NtUserGetDesktopWindow
(),
WM_X11DRV_CLIP_CURSOR_NOTIFY
,
0
,
(
LPARAM
)
msg_hwnd
);
return
TRUE
;
#else
WARN
(
"XInput2 was not available at compile time
\n
"
);
...
...
@@ -457,16 +456,19 @@ static BOOL grab_clipping_window( const RECT *clip )
*/
static
void
ungrab_clipping_window
(
void
)
{
Display
*
display
=
thread_init_display
();
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
Window
clip_window
=
init_clip_window
();
if
(
!
clip_window
)
return
;
TRACE
(
"no longer clipping
\n
"
);
XUnmapWindow
(
display
,
clip_window
);
if
(
clipping_cursor
)
XUngrabPointer
(
display
,
CurrentTime
);
XUnmapWindow
(
d
ata
->
d
isplay
,
clip_window
);
if
(
clipping_cursor
)
XUngrabPointer
(
d
ata
->
d
isplay
,
CurrentTime
);
clipping_cursor
=
FALSE
;
send_notify_message
(
NtUserGetDesktopWindow
(),
WM_X11DRV_CLIP_CURSOR_NOTIFY
,
0
,
0
);
NtUserDestroyWindow
(
data
->
clip_hwnd
);
data
->
clip_hwnd
=
0
;
data
->
clip_reset
=
NtGetTickCount
();
disable_xinput2
();
}
/***********************************************************************
...
...
@@ -484,43 +486,6 @@ void retry_grab_clipping_window(void)
}
/***********************************************************************
* clip_cursor_notify
*
* Notification function called upon receiving a WM_X11DRV_CLIP_CURSOR_NOTIFY.
*/
LRESULT
clip_cursor_notify
(
HWND
hwnd
,
HWND
prev_clip_hwnd
,
HWND
new_clip_hwnd
)
{
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
if
(
hwnd
==
NtUserGetDesktopWindow
())
/* change the clip window stored in the desktop process */
{
static
HWND
clip_hwnd
;
HWND
prev
=
clip_hwnd
;
clip_hwnd
=
new_clip_hwnd
;
if
(
prev
||
new_clip_hwnd
)
TRACE
(
"clip hwnd changed from %p to %p
\n
"
,
prev
,
new_clip_hwnd
);
if
(
prev
)
send_notify_message
(
prev
,
WM_X11DRV_CLIP_CURSOR_NOTIFY
,
(
WPARAM
)
prev
,
0
);
}
else
if
(
hwnd
==
data
->
clip_hwnd
)
/* this is a notification that clipping has been reset */
{
TRACE
(
"clip hwnd reset from %p
\n
"
,
hwnd
);
data
->
clip_hwnd
=
0
;
data
->
clip_reset
=
NtGetTickCount
();
disable_xinput2
();
NtUserDestroyWindow
(
hwnd
);
}
else
if
(
prev_clip_hwnd
)
{
/* This is a notification send by the desktop window to an old
* dangling clip window.
*/
TRACE
(
"destroying old clip hwnd %p
\n
"
,
prev_clip_hwnd
);
NtUserDestroyWindow
(
prev_clip_hwnd
);
}
return
0
;
}
/***********************************************************************
* clip_fullscreen_window
*
* Turn on clipping if the active window is fullscreen.
...
...
dlls/winex11.drv/window.c
View file @
bb043fb6
...
...
@@ -3085,8 +3085,6 @@ LRESULT X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
}
return
0
;
}
case
WM_X11DRV_CLIP_CURSOR_NOTIFY
:
return
clip_cursor_notify
(
hwnd
,
(
HWND
)
wp
,
(
HWND
)
lp
);
case
WM_X11DRV_CLIP_CURSOR_REQUEST
:
return
clip_cursor_request
(
hwnd
,
(
BOOL
)
wp
,
(
BOOL
)
lp
);
case
WM_X11DRV_DELETE_TAB
:
...
...
dlls/winex11.drv/x11drv.h
View file @
bb043fb6
...
...
@@ -589,7 +589,6 @@ enum x11drv_window_messages
WM_X11DRV_SET_WIN_REGION
,
WM_X11DRV_DESKTOP_RESIZED
,
WM_X11DRV_SET_CURSOR
,
WM_X11DRV_CLIP_CURSOR_NOTIFY
,
WM_X11DRV_CLIP_CURSOR_REQUEST
,
WM_X11DRV_DELETE_TAB
,
WM_X11DRV_ADD_TAB
...
...
@@ -684,7 +683,6 @@ extern XContext cursor_context DECLSPEC_HIDDEN;
extern
void
X11DRV_SetFocus
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
set_window_cursor
(
Window
window
,
HCURSOR
handle
)
DECLSPEC_HIDDEN
;
extern
void
sync_window_cursor
(
Window
window
)
DECLSPEC_HIDDEN
;
extern
LRESULT
clip_cursor_notify
(
HWND
hwnd
,
HWND
prev_clip_hwnd
,
HWND
new_clip_hwnd
)
DECLSPEC_HIDDEN
;
extern
LRESULT
clip_cursor_request
(
HWND
hwnd
,
BOOL
fullscreen
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
extern
void
retry_grab_clipping_window
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
clip_fullscreen_window
(
HWND
hwnd
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
...
...
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