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
994d0a9a
Commit
994d0a9a
authored
Feb 23, 2011
by
Daiki Ueno
Browse files
Show keyboard if --listen-focus is not passed to eekboard-system-client.
parent
3f756280
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/system-client.c
View file @
994d0a9a
...
...
@@ -102,7 +102,8 @@ static SPIBoolean keystroke_listener_cb
(
const
AccessibleKeystroke
*
stroke
,
void
*
user_data
);
#endif
/* HAVE_CSPI */
static
void
set_keyboard
(
EekboardSystemClient
*
client
);
static
void
set_keyboard
(
EekboardSystemClient
*
client
,
gboolean
show
);
static
void
eekboard_system_client_set_property
(
GObject
*
object
,
...
...
@@ -262,7 +263,11 @@ eekboard_system_client_enable_xkl (EekboardSystemClient *client)
xkl_engine_start_listen
(
client
->
xkl_engine
,
XKLL_TRACK_KEYBOARD_STATE
);
set_keyboard
(
client
);
#ifdef HAVE_CSPI
set_keyboard
(
client
,
client
->
focus_listener
?
FALSE
:
TRUE
);
#else
set_keyboard
(
client
,
TRUE
);
#endif
return
TRUE
;
}
...
...
@@ -423,7 +428,7 @@ on_xkl_config_changed (XklEngine *xklengine,
{
EekboardSystemClient
*
client
=
user_data
;
set_keyboard
(
client
);
set_keyboard
(
client
,
FALSE
);
#ifdef HAVE_FAKEKEY
if
(
client
->
fakekey
)
...
...
@@ -432,7 +437,8 @@ on_xkl_config_changed (XklEngine *xklengine,
}
static
void
set_keyboard
(
EekboardSystemClient
*
client
)
set_keyboard
(
EekboardSystemClient
*
client
,
gboolean
show
)
{
EekLayout
*
layout
;
gchar
*
keyboard_name
;
...
...
@@ -449,6 +455,8 @@ set_keyboard (EekboardSystemClient *client)
eek_element_set_name
(
EEK_ELEMENT
(
client
->
keyboard
),
keyboard_name
);
eekboard_context_set_keyboard
(
client
->
context
,
client
->
keyboard
,
NULL
);
if
(
show
)
eekboard_context_show_keyboard
(
client
->
context
,
NULL
);
}
static
void
...
...
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