[maemo-commits] [maemo-commits] r19213 - projects/haf/branches/libmatchbox2/bug.134557/matchbox/core
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Aug 26 17:03:03 EEST 2009
- Previous message: [maemo-commits] r19212 - projects/haf/tags/hildon-control-panel/1:2.2.15-1/debian
- Next message: [maemo-commits] r19214 - in projects/haf/trunk/libmatchbox2: . debian matchbox/comp-mgr
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: aendrodi Date: 2009-08-26 17:02:48 +0300 (Wed, 26 Aug 2009) New Revision: 19213 Modified: projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c Log: type-punning fix. Modified: projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c =================================================================== --- projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c 2009-08-26 13:32:25 UTC (rev 19212) +++ projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c 2009-08-26 14:02:48 UTC (rev 19213) @@ -1223,11 +1223,11 @@ Atom foo; int bar; unsigned long baz; - unsigned *req; + unsigned char *req; - if (XGetWindowProperty (wm->xdpy, client->window->xwindow, XInternAtom (wm->xdpy, "_HILDON_PORTRAIT_MODE_REQUEST", False), 0, 4, False, XA_CARDINAL, &foo, &bar, &baz, &baz, (unsigned char **)&req) == Success && foo == XA_CARDINAL && *req) + if (XGetWindowProperty (wm->xdpy, client->window->xwindow, XInternAtom (wm->xdpy, "_HILDON_PORTRAIT_MODE_REQUEST", False), 0, 4, False, XA_CARDINAL, &foo, &bar, &baz, &baz, &req) == Success && foo == XA_CARDINAL && *(unsigned *)req) { - if ((MB_WM_CLIENT_CLIENT_TYPE (client) & MBWMClientTypeApp) || *req > 1) + if ((MB_WM_CLIENT_CLIENT_TYPE (client) & MBWMClientTypeApp) || *(unsigned *)req > 1) { extern void hd_transition_rotate_screen (MBWindowManager *, gboolean); hd_transition_rotate_screen (wm, TRUE);
- Previous message: [maemo-commits] r19212 - projects/haf/tags/hildon-control-panel/1:2.2.15-1/debian
- Next message: [maemo-commits] r19214 - in projects/haf/trunk/libmatchbox2: . debian matchbox/comp-mgr
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]