diff --git a/eekboard/eekboard-context-service.c b/eekboard/eekboard-context-service.c index dce47228..d935a282 100644 --- a/eekboard/eekboard-context-service.c +++ b/eekboard/eekboard-context-service.c @@ -84,7 +84,7 @@ struct _EekboardContextServicePrivate { G_DEFINE_TYPE (EekboardContextService, eekboard_context_service, G_TYPE_OBJECT); -static Display *display = NULL; +/*static Display *display = NULL; */ static EekKeyboard * eekboard_context_service_real_create_keyboard (EekboardContextService *self, @@ -483,7 +483,7 @@ eekboard_context_service_init (EekboardContextService *self) } } -static gboolean on_repeat_timeout (EekboardContextService *context); +/*static gboolean on_repeat_timeout (EekboardContextService *context); static gboolean on_repeat_timeout (EekboardContextService *context) @@ -505,15 +505,15 @@ on_repeat_timeout (EekboardContextService *context) static gboolean on_repeat_timeout_init (EekboardContextService *context) { - /* FIXME: clear modifiers for further key repeat; better not - depend on modifier behavior is LATCH */ + // FIXME: clear modifiers for further key repeat; better not + // depend on modifier behavior is LATCH eek_keyboard_set_modifiers (context->priv->keyboard, 0); - /* reschedule repeat timeout only when "repeat" option is set */ - /* TODO: org.gnome.desktop.input-sources doesn't have repeat info. - * In addition, repeat is only useful when the keyboard is not in text - * input mode */ - /* + // reschedule repeat timeout only when "repeat" option is set + // TODO: org.gnome.desktop.input-sources doesn't have repeat info. + // In addition, repeat is only useful when the keyboard is not in text + // input mode + if (g_settings_get_boolean (context->priv->settings, "repeat")) { guint delay; @@ -522,11 +522,11 @@ on_repeat_timeout_init (EekboardContextService *context) g_timeout_add (delay, (GSourceFunc)on_repeat_timeout, context); - } else */ + //} else context->priv->repeat_timeout_id = 0; return FALSE; -} +}*/ /** * eekboard_context_service_enable: diff --git a/eekboard/key-emitter.c b/eekboard/key-emitter.c index 344c2ed7..539c2331 100644 --- a/eekboard/key-emitter.c +++ b/eekboard/key-emitter.c @@ -78,11 +78,12 @@ replace_keycode (SeatEmitter *emitter, guint keycode, guint *keysym) { - GdkDisplay *display = gdk_display_get_default (); - //Display *xdisplay = GDK_DISPLAY_XDISPLAY (display); +/* GdkDisplay *display = gdk_display_get_default (); + Display *xdisplay = GDK_DISPLAY_XDISPLAY (display); guint old_keysym; int keysyms_per_keycode; KeySym *syms; +*/ return TRUE; // FIXME: no xkb allocated at the moment, pretending all is fine g_return_val_if_fail (emitter->xkb->min_key_code <= keycode && keycode <= emitter->xkb->max_key_code,