From 5007f55bebe026d98ed089869637935ad7deb98e Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Jul 31 2024 14:57:25 +0000 Subject: portrait support for maemo --- diff --git a/app.c b/app.c index db74cec..56de75d 100644 --- a/app.c +++ b/app.c @@ -74,6 +74,10 @@ int appInit(App *app) { Atom wtval = XInternAtom(app->dpy, "_NET_WM_WINDOW_TYPE_TOOLBAR", False); if (wt != None && wtval != None) XChangeProperty(app->dpy, app->win, wt, XA_ATOM, 32, PropModeReplace, (unsigned char*)&wtval, 1); + Atom pm = XInternAtom(app->dpy, "_HILDON_PORTRAIT_MODE_SUPPORT", False); + unsigned int pmval = 1; + if (pm) + XChangeProperty(app->dpy, app->win, pm, XA_CARDINAL, 32, PropModeReplace, (unsigned char*)&pmval, 1); #endif #endif