[maemo-commits] [maemo-commits] r19206 - in projects/haf/branches/libmatchbox2: . bug.134557/matchbox/core
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Aug 26 16:19:55 EEST 2009
- Previous message: [maemo-commits] r19205 - projects/haf/trunk/hildon-input-method-plugins-example/src
- Next message: [maemo-commits] r19207 - in projects/haf/branches/clutter: . bug.134557/clutter/x11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: aendrodi Date: 2009-08-26 16:19:34 +0300 (Wed, 26 Aug 2009) New Revision: 19206 Added: projects/haf/branches/libmatchbox2/bug.134557/ Modified: projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c Log: branch for bug.134557 Copied: projects/haf/branches/libmatchbox2/bug.134557 (from rev 19205, projects/haf/trunk/libmatchbox2) Modified: projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c =================================================================== --- projects/haf/trunk/libmatchbox2/matchbox/core/mb-window-manager.c 2009-08-26 09:28:19 UTC (rev 19205) +++ projects/haf/branches/libmatchbox2/bug.134557/matchbox/core/mb-window-manager.c 2009-08-26 13:19:34 UTC (rev 19206) @@ -1218,6 +1218,24 @@ mb_wm_client_stack(client, 0); mb_wm_update_root_win_lists (wm); + if (client == wm->stack_top && !client->transient_for && MB_WM_CLIENT_CLIENT_TYPE (client) & (MBWMClientTypeApp | MBWMClientTypeDialog)) + { + Atom foo; + int bar; + unsigned long baz; + unsigned *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 ((MB_WM_CLIENT_CLIENT_TYPE (client) & MBWMClientTypeApp) || *req > 1) + { + extern void hd_transition_rotate_screen (MBWindowManager *, gboolean); + hd_transition_rotate_screen (wm, TRUE); + } + XFree(req); + } + } + if (MB_WM_CLIENT_CLIENT_TYPE (client) == MBWMClientTypePanel) { mb_wm_update_root_win_rectangles (wm);
- Previous message: [maemo-commits] r19205 - projects/haf/trunk/hildon-input-method-plugins-example/src
- Next message: [maemo-commits] r19207 - in projects/haf/branches/clutter: . bug.134557/clutter/x11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]