[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/10] ui/gtk: remove unused variable ignore_keys
From: |
Volker Rümelin |
Subject: |
[PATCH 05/10] ui/gtk: remove unused variable ignore_keys |
Date: |
Sun, 10 May 2020 20:42:59 +0200 |
Since the removal of GTK2 code the code around ignore_keys is
unused. See commit 1a01716a30 "gtk: Avoid accel key leakage
into guest on console switch" why it was needed before.
Signed-off-by: Volker Rümelin <address@hidden>
---
ui/gtk.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index c70bfc2be4..5a25e3fa4c 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -168,8 +168,6 @@ struct GtkDisplayState {
bool external_pause_update;
- bool ignore_keys;
-
DisplayOptions *opts;
};
@@ -1085,14 +1083,8 @@ static gboolean gd_text_key_down(GtkWidget *widget,
static gboolean gd_key_event(GtkWidget *widget, GdkEventKey *key, void *opaque)
{
VirtualConsole *vc = opaque;
- GtkDisplayState *s = vc->s;
int qcode;
- if (s->ignore_keys) {
- s->ignore_keys = (key->type == GDK_KEY_PRESS);
- return TRUE;
- }
-
#ifdef WIN32
/* on windows, we ought to ignore the reserved key event? */
if (key->hardware_keycode == 0xff)
@@ -1189,7 +1181,6 @@ static void gd_menu_switch_vc(GtkMenuItem *item, void
*opaque)
gtk_notebook_set_current_page(nb, page);
gtk_widget_grab_focus(vc->focus);
}
- s->ignore_keys = false;
}
static void gd_accel_switch_vc(void *opaque)
--
2.26.1
- Patches for ui/gtk and ui/sdl, Volker Rümelin, 2020/05/10
- [PATCH 03/10] ui/gkt: release all keys on grab-broken-event, Volker Rümelin, 2020/05/10
- [PATCH 02/10] ui/gtk: fix handling of AltGr key on Windows, Volker Rümelin, 2020/05/10
- [PATCH 01/10] ui/win32-kbd-hook: handle AltGr in a hook procedure, Volker Rümelin, 2020/05/10
- [PATCH 05/10] ui/gtk: remove unused variable ignore_keys,
Volker Rümelin <=
- [PATCH 06/10] ui/sdl2: fix handling of AltGr key on Windows, Volker Rümelin, 2020/05/10
- [PATCH 04/10] ui/gtk: remove unused code, Volker Rümelin, 2020/05/10
- [PATCH 07/10] ui/sdl2: start in full screen with grab enabled, Volker Rümelin, 2020/05/10
- [PATCH 08/10] ui/sdl2-input: use trace-events to debug key events, Volker Rümelin, 2020/05/10
- [PATCH 09/10] ui/gtk: don't pass on win keys without keyboard grab, Volker Rümelin, 2020/05/10
- [PATCH 10/10] ui/gtk: use native keyboard scancodes on Windows, Volker Rümelin, 2020/05/10