X11rdp: keyboard and offscreen bitmap fix
This commit is contained in:
parent
b3dcfdaa37
commit
3eb3f65e41
@ -830,11 +830,14 @@ check_keysa(void)
|
||||
void
|
||||
sendDownUpKeyEvent(int type, int x_scancode)
|
||||
{
|
||||
/* if type is keydown, send keydown + keyup */
|
||||
/* this allows us to ignore keyup events */
|
||||
/* if type is keydown, send keyup + keydown */
|
||||
if (type == KeyPress)
|
||||
{
|
||||
rdpEnqueueKey(KeyRelease, x_scancode);
|
||||
rdpEnqueueKey(KeyPress, x_scancode);
|
||||
}
|
||||
else
|
||||
{
|
||||
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));
|
||||
/* evict old */
|
||||
g_os_bitmaps[oldest_index].priv->status = 0;
|
||||
g_os_bitmaps[oldest_index].priv->con_number = 0;
|
||||
/* set new */
|
||||
g_os_bitmaps[oldest_index].pixmap = pixmap;
|
||||
g_os_bitmaps[oldest_index].priv = priv;
|
||||
|
Loading…
Reference in New Issue
Block a user