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
e14261db
Commit
e14261db
authored
Feb 06, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use the gdi display when initializing the keyboard to avoid creating a…
winex11: Use the gdi display when initializing the keyboard to avoid creating a second display connection.
parent
6a2ac97e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
keyboard.c
dlls/winex11.drv/keyboard.c
+4
-6
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+1
-1
No files found.
dlls/winex11.drv/keyboard.c
View file @
e14261db
...
...
@@ -1468,9 +1468,8 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
* X11 lock must be held.
*/
static
void
X11DRV_KEYBOARD_DetectLayout
(
void
)
X11DRV_KEYBOARD_DetectLayout
(
Display
*
display
)
{
Display
*
display
=
thread_display
();
unsigned
current
,
match
,
mismatch
,
seq
,
i
,
syms
;
int
score
,
keyc
,
key
,
pkey
,
ok
;
KeySym
keysym
=
0
;
...
...
@@ -1577,9 +1576,8 @@ X11DRV_KEYBOARD_DetectLayout (void)
/**********************************************************************
* X11DRV_InitKeyboard
*/
void
X11DRV_InitKeyboard
(
void
)
void
X11DRV_InitKeyboard
(
Display
*
display
)
{
Display
*
display
=
thread_display
();
KeySym
*
ksp
;
XModifierKeymap
*
mmp
;
KeySym
keysym
;
...
...
@@ -1621,7 +1619,7 @@ void X11DRV_InitKeyboard(void)
XFreeModifiermap
(
mmp
);
/* Detect the keyboard layout */
X11DRV_KEYBOARD_DetectLayout
();
X11DRV_KEYBOARD_DetectLayout
(
display
);
lkey
=
main_key_tab
[
kbd_layout
].
key
;
syms
=
(
keysyms_per_keycode
>
4
)
?
4
:
keysyms_per_keycode
;
...
...
@@ -1969,7 +1967,7 @@ void X11DRV_MappingNotify( HWND dummy, XEvent *event )
wine_tsx11_lock
();
XRefreshKeyboardMapping
(
&
event
->
xmapping
);
wine_tsx11_unlock
();
X11DRV_InitKeyboard
();
X11DRV_InitKeyboard
(
thread_display
()
);
hwnd
=
GetFocus
();
if
(
!
hwnd
)
hwnd
=
GetActiveWindow
();
...
...
dlls/winex11.drv/x11drv.h
View file @
e14261db
...
...
@@ -712,7 +712,7 @@ extern void X11DRV_ResetSelectionOwner(void);
extern
void
X11DRV_SetFocus
(
HWND
hwnd
);
extern
Cursor
X11DRV_GetCursor
(
Display
*
display
,
struct
tagCURSORICONINFO
*
ptr
);
extern
BOOL
X11DRV_ClipCursor
(
LPCRECT
clip
);
extern
void
X11DRV_InitKeyboard
(
void
);
extern
void
X11DRV_InitKeyboard
(
Display
*
display
);
extern
void
X11DRV_send_keyboard_input
(
WORD
wVk
,
WORD
wScan
,
DWORD
dwFlags
,
DWORD
time
,
DWORD
dwExtraInfo
,
UINT
injected_flags
);
extern
void
X11DRV_send_mouse_input
(
HWND
hwnd
,
DWORD
flags
,
DWORD
x
,
DWORD
y
,
...
...
dlls/winex11.drv/x11drv_main.c
View file @
e14261db
...
...
@@ -543,7 +543,7 @@ static BOOL process_attach(void)
X11DRV_XComposite_Init
();
#endif
X11DRV_InitKeyboard
();
X11DRV_InitKeyboard
(
gdi_display
);
X11DRV_InitClipboard
();
return
TRUE
;
...
...
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