diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-11-12 19:57:34 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-15 13:41:10 +0200 |
commit | a461f0655f1d97503fe854d285da95c306d7edf8 (patch) | |
tree | ca7a0b9376209c2198cb1cd9e6cedcf90a41270f /client/x11/res.cpp | |
parent | 39153191258c4a37e4e61241c3149f7ca08e217c (diff) | |
download | spice-a461f0655f1d97503fe854d285da95c306d7edf8.tar.gz spice-a461f0655f1d97503fe854d285da95c306d7edf8.tar.xz spice-a461f0655f1d97503fe854d285da95c306d7edf8.zip |
spice client: sticky Alt activation when holding an Alt key: bug #505912.
Additional changes that were required for the feature:
1) focusing on the pointed window in full screen mode
2) In X11 - handling events that occur during keyboard ungrabbing
3) In X11 - handling Leave/Enter Notify events that occur during keyboard grabbing/ungrabbing
4) In X11 - fix for focus events that are handled in the wrong order (happens when
focus events occur during grabbing the keyboard)
5) In X11 - ignoring key release events during key holding
6) In Windows - synchronizing keyboard release events that occured during a modal loop
Diffstat (limited to 'client/x11/res.cpp')
-rw-r--r-- | client/x11/res.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/x11/res.cpp b/client/x11/res.cpp index 8f3a5487..b4615f82 100644 --- a/client/x11/res.cpp +++ b/client/x11/res.cpp @@ -36,6 +36,14 @@ static const PixmapHeader info_image = { _info_image.width * 4, }; +#include "images/alt_image.c" + +static const PixmapHeader alt_image = { + (uint8_t *)_alt_image.pixel_data, + _alt_image.width, + _alt_image.height, + _alt_image.width * 4, +}; typedef struct ResImage { int id; @@ -45,6 +53,7 @@ typedef struct ResImage { static const ResImage res_image_map[] = { { SPLASH_IMAGE_RES_ID, &splash_image}, { INFO_IMAGE_RES_ID, &info_image}, + { ALT_IMAGE_RES_ID, &alt_image}, {0, NULL}, }; |