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
b863d3ab
Commit
b863d3ab
authored
May 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Reset clipping by calling NtUserClipCursor directly.
parent
5bdbbee6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
15 deletions
+3
-15
event.c
dlls/winex11.drv/event.c
+2
-2
mouse.c
dlls/winex11.drv/mouse.c
+0
-11
window.c
dlls/winex11.drv/window.c
+1
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
No files found.
dlls/winex11.drv/event.c
View file @
b863d3ab
...
...
@@ -814,7 +814,7 @@ static void focus_out( Display *display , HWND hwnd )
if
(
is_virtual_desktop
())
{
if
(
hwnd
==
NtUserGetDesktopWindow
())
reset_clipping_window
(
);
if
(
hwnd
==
NtUserGetDesktopWindow
())
NtUserClipCursor
(
NULL
);
return
;
}
if
(
hwnd
!=
NtUserGetForegroundWindow
())
return
;
...
...
@@ -858,7 +858,7 @@ static BOOL X11DRV_FocusOut( HWND hwnd, XEvent *xev )
if
(
event
->
detail
==
NotifyPointer
)
{
if
(
!
hwnd
&&
event
->
window
==
x11drv_thread_data
()
->
clip_window
)
reset_clipping_window
(
);
if
(
!
hwnd
&&
event
->
window
==
x11drv_thread_data
()
->
clip_window
)
NtUserClipCursor
(
NULL
);
return
TRUE
;
}
if
(
!
hwnd
)
return
FALSE
;
...
...
dlls/winex11.drv/mouse.c
View file @
b863d3ab
...
...
@@ -470,17 +470,6 @@ static void ungrab_clipping_window(void)
}
/***********************************************************************
* reset_clipping_window
*
* Forcibly reset the window clipping on external events.
*/
void
reset_clipping_window
(
void
)
{
ungrab_clipping_window
();
NtUserClipCursor
(
NULL
);
/* make sure the clip rectangle is reset too */
}
/***********************************************************************
* retry_grab_clipping_window
*
* Restore the current clip rectangle or retry the last one if it has
...
...
dlls/winex11.drv/window.c
View file @
b863d3ab
...
...
@@ -2687,7 +2687,7 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
{
release_win_data
(
data
);
unmap_window
(
hwnd
);
if
(
NtUserIsWindowRectFullScreen
(
&
old_window_rect
))
reset_clipping_window
(
);
if
(
NtUserIsWindowRectFullScreen
(
&
old_window_rect
))
NtUserClipCursor
(
NULL
);
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
;
}
}
...
...
dlls/winex11.drv/x11drv.h
View file @
b863d3ab
...
...
@@ -686,7 +686,6 @@ 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
reset_clipping_window
(
void
)
DECLSPEC_HIDDEN
;
extern
void
retry_grab_clipping_window
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
clip_fullscreen_window
(
HWND
hwnd
,
BOOL
reset
)
DECLSPEC_HIDDEN
;
extern
void
move_resize_window
(
HWND
hwnd
,
int
dir
)
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