View Single Post
Posts: 4 | Thanked: 0 times | Joined on Mar 2010
#1
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?