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
49a013cd
Commit
49a013cd
authored
Jan 28, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When using desktop mode attach all thread inputs together, so that
keyboard focus works properly.
parent
73fd10c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
desktop.c
dlls/x11drv/desktop.c
+2
-1
x11drv_main.c
dlls/x11drv/x11drv_main.c
+2
-0
x11drv.h
include/x11drv.h
+1
-0
No files found.
dlls/x11drv/desktop.c
View file @
49a013cd
...
...
@@ -91,7 +91,8 @@ static DWORD CALLBACK desktop_thread( LPVOID driver_data )
*/
void
X11DRV_create_desktop_thread
(
void
)
{
HANDLE
handle
=
CreateThread
(
NULL
,
0
,
desktop_thread
,
NtCurrentTeb
()
->
driver_data
,
0
,
NULL
);
HANDLE
handle
=
CreateThread
(
NULL
,
0
,
desktop_thread
,
NtCurrentTeb
()
->
driver_data
,
0
,
&
desktop_tid
);
if
(
!
handle
)
{
MESSAGE
(
"Could not create desktop thread
\n
"
);
...
...
dlls/x11drv/x11drv_main.c
View file @
49a013cd
...
...
@@ -57,6 +57,7 @@ unsigned int screen_width;
unsigned
int
screen_height
;
unsigned
int
screen_depth
;
Window
root_window
;
DWORD
desktop_tid
=
0
;
int
dxgrab
,
usedga
,
usexvidmode
;
int
use_take_focus
=
1
;
int
managed_mode
=
1
;
...
...
@@ -439,6 +440,7 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
data
->
cursor_window
=
None
;
data
->
last_focus
=
0
;
NtCurrentTeb
()
->
driver_data
=
data
;
if
(
desktop_tid
)
AttachThreadInput
(
GetCurrentThreadId
(),
desktop_tid
,
TRUE
);
return
data
;
}
...
...
include/x11drv.h
View file @
49a013cd
...
...
@@ -353,6 +353,7 @@ inline static Display *thread_display(void) { return x11drv_thread_data()->displ
extern
Visual
*
visual
;
extern
Window
root_window
;
extern
DWORD
desktop_tid
;
extern
unsigned
int
screen_width
;
extern
unsigned
int
screen_height
;
extern
unsigned
int
screen_depth
;
...
...
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