[maemo-commits] [maemo-commits] r18968 - in projects/haf/trunk/libmatchbox2: . matchbox/core
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Jul 23 15:38:16 EEST 2009
- Previous message: [maemo-commits] r18967 - projects/haf/tags/ke-recv/3.19-1fixes/debian
- Next message: [maemo-commits] r18969 - projects/haf/trunk/libmatchbox2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: aendrodi Date: 2009-07-23 15:38:11 +0300 (Thu, 23 Jul 2009) New Revision: 18968 Modified: projects/haf/trunk/libmatchbox2/ChangeLog projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.c projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.h Log: * matchbox/core/mb-wm-main-context.h * matchbox/core/mb-wm-main-context.c: Allow for KeyRelease event handlers. Modified: projects/haf/trunk/libmatchbox2/ChangeLog =================================================================== --- projects/haf/trunk/libmatchbox2/ChangeLog 2009-07-23 12:34:02 UTC (rev 18967) +++ projects/haf/trunk/libmatchbox2/ChangeLog 2009-07-23 12:38:11 UTC (rev 18968) @@ -1,5 +1,11 @@ 2009-07-23 Gordon Williams <gordon.williams at collabora.co.uk> + * matchbox/core/mb-wm-main-context.h + * matchbox/core/mb-wm-main-context.c: + Allow for KeyRelease event handlers. + +2009-07-23 Gordon Williams <gordon.williams at collabora.co.uk> + Resolves half of NB#127320 - desktop panning * matchbox/core/mb-wm-client-window.c: Remove the 'Monster Hack'. The original reason for this (browser visibility) appears to have gone Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.c =================================================================== --- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.c 2009-07-23 12:34:02 UTC (rev 18967) +++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.c 2009-07-23 12:38:11 UTC (rev 18968) @@ -335,6 +335,11 @@ &xev->xkey, xev->xproperty.window); break; + case KeyRelease: + call_handlers_for_event (ctx->event_funcs.key_release, + &xev->xkey, + xev->xproperty.window); + break; case PropertyNotify: call_handlers_for_event (ctx->event_funcs.property_notify, &xev->xproperty, @@ -497,6 +502,10 @@ ctx->event_funcs.key_press = mb_wm_util_list_append (ctx->event_funcs.key_press, func_info); break; + case KeyRelease: + ctx->event_funcs.key_release = + mb_wm_util_list_append (ctx->event_funcs.key_release, func_info); + break; case PropertyNotify: ctx->event_funcs.property_notify = mb_wm_util_list_append (ctx->event_funcs.property_notify, func_info); @@ -568,6 +577,9 @@ case KeyPress: l_start = &ctx->event_funcs.key_press; break; + case KeyRelease: + l_start = &ctx->event_funcs.key_release; + break; case PropertyNotify: l_start = &ctx->event_funcs.property_notify; break; Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.h =================================================================== --- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.h 2009-07-23 12:34:02 UTC (rev 18967) +++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-main-context.h 2009-07-23 12:38:11 UTC (rev 18968) @@ -45,6 +45,7 @@ MBWMList *configure_request; MBWMList *configure_notify; MBWMList *key_press; + MBWMList *key_release; MBWMList *property_notify; MBWMList *button_press; MBWMList *button_release;
- Previous message: [maemo-commits] r18967 - projects/haf/tags/ke-recv/3.19-1fixes/debian
- Next message: [maemo-commits] r18969 - projects/haf/trunk/libmatchbox2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]