[maemo-commits] [maemo-commits] r8748 - in projects/haf/branches/maemo-af-desktop/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Dec 13 18:07:27 EET 2006
- Previous message: [maemo-commits] r8747 - projects/haf/tags/maemo-af-desktop
- Next message: [maemo-commits] r8749 - projects/haf/trunk/python-hildon/defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: moimart Date: 2006-12-13 18:07:26 +0200 (Wed, 13 Dec 2006) New Revision: 8748 Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hn-app-switcher.c Log: * libhildondesktop/hn-app-switcher.c: Using the hd_keys_'s API for sending fake keys. * ChangeLog updated. Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog =================================================================== --- projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog 2006-12-13 14:43:57 UTC (rev 8747) +++ projects/haf/branches/maemo-af-desktop/hildon-desktop/ChangeLog 2006-12-13 16:07:26 UTC (rev 8748) @@ -1,3 +1,8 @@ +2006-12-13 Moises Martinez <moises.martinez at nokia.com> + + * libhildondesktop/hn-app-switcher.c: Using the hd_keys_'s API + for sending fake keys. + 2006-12-12 Moises Martinez <moises.martinez at nokia.com> * libhildondesktop/hildon-desktop-plugin.[ch]: Modified: projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hn-app-switcher.c =================================================================== --- projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hn-app-switcher.c 2006-12-13 14:43:57 UTC (rev 8747) +++ projects/haf/branches/maemo-af-desktop/hildon-desktop/libhildondesktop/hn-app-switcher.c 2006-12-13 16:07:26 UTC (rev 8748) @@ -358,17 +358,16 @@ * is opened, send a fake ESC key event to attempt * to close it */ - KeyCode keycode; - KeySym keysym; - keysym = XK_Escape; - keycode = XKeysymToKeycode (GDK_DISPLAY(), keysym); - - XTestFakeKeyEvent (GDK_DISPLAY(), keycode, TRUE, CurrentTime); - XTestFakeKeyEvent (GDK_DISPLAY(), keycode, FALSE, CurrentTime); - XSync(GDK_DISPLAY(), False); - - /* Try again */ + /* moimart */ + /* Whenever we have to send a fake key we can have side + * effects. We must get rid of it sooner or later */ + + HDWM *wm = hd_wm_get_singleton (); + + hd_keys_send_key_by_keysym (wm->keys,XK_Escape); + + /* Try again */ gtk_toggle_button_toggled (button); } }
- Previous message: [maemo-commits] r8747 - projects/haf/tags/maemo-af-desktop
- Next message: [maemo-commits] r8749 - projects/haf/trunk/python-hildon/defs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]