Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 297833 Details for
Bug 435763
Keyboard doesn't respond properly in virt-manager
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Track based on scancode instead of keycode
gtk-vnc-0.3.2-keystate-tracking-scancode.patch (text/plain), 2.19 KB, created by
Daniel Berrangé
on 2008-03-12 19:35:14 UTC
(
hide
)
Description:
Track based on scancode instead of keycode
Filename:
MIME Type:
Creator:
Daniel Berrangé
Created:
2008-03-12 19:35:14 UTC
Size:
2.19 KB
patch
obsolete
>diff -rup gtk-vnc-0.3.2.orig/src/vncdisplay.c gtk-vnc-0.3.2.new/src/vncdisplay.c >--- gtk-vnc-0.3.2.orig/src/vncdisplay.c 2008-03-12 14:50:13.000000000 -0400 >+++ gtk-vnc-0.3.2.new/src/vncdisplay.c 2008-03-12 15:20:01.000000000 -0400 >@@ -44,6 +44,7 @@ struct _VncDisplayPrivate > gboolean in_keyboard_grab; > > guint down_keyval[16]; >+ guint down_scancode[16]; > > int button_mask; > int last_x; >@@ -412,12 +413,13 @@ static gboolean key_event(GtkWidget *wid > if (key->type == GDK_KEY_PRESS) { > int i; > for (i = 0 ; i < (int)(sizeof(priv->down_keyval)/sizeof(priv->down_keyval[0])) ; i++) { >- if (priv->down_keyval[i] == 0) { >+ if (priv->down_scancode[i] == 0) { > priv->down_keyval[i] = keyval; >+ priv->down_scancode[i] = key->hardware_keycode; > /* Send the actual key event we're dealing with */ > gvnc_key_event(priv->gvnc, 1, keyval); > break; >- } else if (priv->down_keyval[i] == keyval) { >+ } else if (priv->down_scancode[i] == key->hardware_keycode) { > /* Got an press when we're already pressed ! Why ... ? > * > * Well, GTK merges sequential press+release pairs of the same >@@ -430,14 +432,16 @@ static gboolean key_event(GtkWidget *wid > gvnc_key_event(priv->gvnc, 0, keyval); > /* Now send our actual ldown event */ > gvnc_key_event(priv->gvnc, 1, keyval); >+ break; > } > } > } else { > int i; > for (i = 0 ; i < (int)(sizeof(priv->down_keyval)/sizeof(priv->down_keyval[0])) ; i++) { > /* We were pressed, and now we're released, so... */ >- if (priv->down_keyval[i] == keyval) { >+ if (priv->down_scancode[i] == key->hardware_keycode) { > priv->down_keyval[i] = 0; >+ priv->down_scancode[i] = 0; > /* ..send the key releae event we're dealing with */ > gvnc_key_event(priv->gvnc, 0, keyval); > break; >@@ -503,10 +507,11 @@ static gboolean focus_event(GtkWidget *w > > for (i = 0 ; i < (int)(sizeof(priv->down_keyval)/sizeof(priv->down_keyval[0])) ; i++) { > /* We are currently pressed so... */ >- if (priv->down_keyval[i] != 0) { >+ if (priv->down_scancode[i] != 0) { > /* ..send the fake key releae event to match */ > gvnc_key_event(priv->gvnc, 0, priv->down_keyval[i]); > priv->down_keyval[i] = 0; >+ priv->down_scancode[i] = 0; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 435763
: 297833