From: Victor Toso <[email protected]>

The bug was fixed in GTK+ 3.22. I'm updating the comment plus setting
the !GTK_CHECK_VERSION() to track changes that can be removed after
bumping the gtk+ library.

Signed-off-by: Victor Toso <[email protected]>
---
 src/spice-widget.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/spice-widget.c b/src/spice-widget.c
index 767550b..72f5334 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -1623,9 +1623,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
         return true;
 
     if (key->keyval == GDK_KEY_Pause
-#ifdef G_OS_WIN32
-        /* for some reason GDK does not fill keyval for VK_PAUSE
-         * See https://bugzilla.gnome.org/show_bug.cgi?id=769214
+#if defined(G_OS_WIN32) && !GTK_CHECK_VERSION(3, 22, 0)
+        /* Bug https://bugzilla.gnome.org/show_bug.cgi?id=769214
+         * Fixed in 3.22 with 125ef35
          */
         || key->hardware_keycode == VK_PAUSE
 #endif
-- 
2.17.0

_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to