|
|
2010-03-21
, 16:16
|
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#2
|
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:
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); }What wrong with that code? Any other API to switch off status area?