maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Switch off status area (https://talk.maemo.org/showthread.php?t=47943)

truf 2010-03-21 16:11

Switch off status area
 
Hi,
I'm trying to implement status area hide/show function in my app.

As i can see from hildon desktop sources, desktop process get notifications on all root window propirty changes. And in case _MB_CURRENT_APP_WINDOW atom is changed and its data != 0xFFFFFF status area should be hidden (see 'filter_property_changed' func.).

I'm trying to use that with following code:

Code:

static int hide_state_area(Display * display)
{

int data = 1;
    Atom atom = XInternAtom ( display, "_MB_CURRENT_APP_WINDOW", false );

    return XChangeProperty ( display,
            DefaultRootWindow(display),
            atom,
            (Atom) 19, //XA_INTEGER
            32,
            PropModeReplace,
            (unsigned char*)& data,
            1);
}

but without success.

What wrong with that code? Any other API to switch off status area?

b666m 2010-03-21 16:16

Re: Switch off status area
 
maybe this could be helpful for you:
http://sumoudou.org/%E7%9B%B8%E6%92%...ia%20N900.html

truf 2010-03-21 16:35

Re: Switch off status area
 
Hmm... No, i dont think so.


All times are GMT. The time now is 21:47.

vBulletin® Version 3.8.8