Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
squeekboard
Commits
1ae4426e
Commit
1ae4426e
authored
Jun 13, 2011
by
Daiki Ueno
Browse files
Make sure XTest extension is available.
parent
270760bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/client.c
View file @
1ae4426e
...
...
@@ -895,11 +895,20 @@ update_modifier_keycodes (EekboardClient *client)
gboolean
eekboard_client_enable_xtest
(
EekboardClient
*
client
)
{
int
event_base
,
error_base
,
major_version
,
minor_version
;
if
(
!
client
->
display
)
{
client
->
display
=
gdk_display_get_default
();
}
g_assert
(
client
->
display
);
if
(
!
XTestQueryExtension
(
GDK_DISPLAY_XDISPLAY
(
client
->
display
),
&
event_base
,
&
error_base
,
&
major_version
,
&
minor_version
))
{
g_warning
(
"XTest extension is not available"
);
return
FALSE
;
}
update_modifier_keycodes
(
client
);
client
->
key_pressed_handler
=
...
...
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