From a461f0655f1d97503fe854d285da95c306d7edf8 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Thu, 12 Nov 2009 19:57:34 +0200 Subject: 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 --- client/x11/res.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/x11/res.cpp') 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}, }; -- cgit