X11rdp: keyboard and offscreen bitmap fix

ulab-next
Jay Sorg 12 years ago
parent b3dcfdaa37
commit 3eb3f65e41

@ -830,11 +830,14 @@ check_keysa(void)
void void
sendDownUpKeyEvent(int type, int x_scancode) sendDownUpKeyEvent(int type, int x_scancode)
{ {
/* if type is keydown, send keydown + keyup */ /* if type is keydown, send keyup + keydown */
/* this allows us to ignore keyup events */
if (type == KeyPress) if (type == KeyPress)
{ {
rdpEnqueueKey(KeyRelease, x_scancode);
rdpEnqueueKey(KeyPress, x_scancode); rdpEnqueueKey(KeyPress, x_scancode);
}
else
{
rdpEnqueueKey(KeyRelease, x_scancode); rdpEnqueueKey(KeyRelease, x_scancode);
} }
} }

@ -219,6 +219,7 @@ rdpup_add_os_bitmap(PixmapPtr pixmap, rdpPixmapPtr priv)
LLOGLN(10, ("rdpup_add_os_bitmap: evicting old, oldest_index %d", oldest_index)); LLOGLN(10, ("rdpup_add_os_bitmap: evicting old, oldest_index %d", oldest_index));
/* evict old */ /* evict old */
g_os_bitmaps[oldest_index].priv->status = 0; g_os_bitmaps[oldest_index].priv->status = 0;
g_os_bitmaps[oldest_index].priv->con_number = 0;
/* set new */ /* set new */
g_os_bitmaps[oldest_index].pixmap = pixmap; g_os_bitmaps[oldest_index].pixmap = pixmap;
g_os_bitmaps[oldest_index].priv = priv; g_os_bitmaps[oldest_index].priv = priv;

Loading…
Cancel
Save