Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
spice-gtk
214bfa5f-macro-def-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 214bfa5f-macro-def-fix.patch of Package spice-gtk
From 214bfa5fb8a3204956f3eb222e5f945b19f985d0 Mon Sep 17 00:00:00 2001 From: Cody Chan <int64ago@gmail.com> Date: Wed, 13 Aug 2014 16:45:12 +0800 Subject: keyboard: wrong defined macro for WIN32 On windows client, there's no effect for guest when enabling CAPS_LOCK/NUM_LOCK/SCROLL_LOCK on (because of the delay, guest may take the effect for several seconds). There's a wrong defined macro, then <modifiers> is ALWAYS 0, and the keyboard state of guest is synchronized with the state client by spice_gtk_session_sync_keyboard_modifiers_for_channel(...). diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c index 84a83a2..abd39c7 100644 --- a/gtk/spice-gtk-session.c +++ b/gtk/spice-gtk-session.c @@ -140,7 +140,7 @@ static guint32 get_keyboard_lock_modifiers(void) if (keyboard_state.led_mask & 0x04) { modifiers |= SPICE_INPUTS_SCROLL_LOCK; } -#elif defined(win32) +#elif defined(WIN32) if (GetKeyState(VK_CAPITAL) & 1) { modifiers |= SPICE_INPUTS_CAPS_LOCK; } -- cgit v0.10.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor