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
2b96875b
Commit
2b96875b
authored
Mar 30, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Reset the cursor clip rectangle when the foreground thread changes.
parent
716df1c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
queue.c
server/queue.c
+10
-2
No files found.
server/queue.c
View file @
2b96875b
...
...
@@ -318,6 +318,14 @@ static int assign_thread_input( struct thread *thread, struct thread_input *new_
return
1
;
}
/* change the foreground input and reset the cursor clip rect */
static
void
set_foreground_input
(
struct
desktop
*
desktop
,
struct
thread_input
*
input
)
{
if
(
desktop
->
foreground_input
==
input
)
return
;
get_top_window_rectangle
(
desktop
,
&
desktop
->
cursor_clip
);
desktop
->
foreground_input
=
input
;
}
/* get the hook table for a given thread */
struct
hook_table
*
get_queue_hooks
(
struct
thread
*
thread
)
{
...
...
@@ -901,7 +909,7 @@ static void thread_input_destroy( struct object *obj )
empty_msg_list
(
&
input
->
msg_list
);
if
(
input
->
desktop
)
{
if
(
input
->
desktop
->
foreground_input
==
input
)
input
->
desktop
->
foreground_input
=
NULL
;
if
(
input
->
desktop
->
foreground_input
==
input
)
set_foreground_input
(
input
->
desktop
,
NULL
)
;
release_object
(
input
->
desktop
);
}
}
...
...
@@ -2445,7 +2453,7 @@ DECL_HANDLER(set_foreground_window)
((
thread
=
get_window_thread
(
req
->
handle
)))
&&
(
thread
->
queue
->
input
->
desktop
==
desktop
))
{
desktop
->
foreground_input
=
thread
->
queue
->
input
;
set_foreground_input
(
desktop
,
thread
->
queue
->
input
)
;
reply
->
send_msg_new
=
(
desktop
->
foreground_input
!=
queue
->
input
);
}
else
set_win32_error
(
ERROR_INVALID_WINDOW_HANDLE
);
...
...
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