reserving a panel/taskbars space on the screen



Hi I'm trying to use gdk_property_change() to make my taskbar/panel I'm writing to reserve it's space on the on the screen so that when thing maximise they wont go beyond my widows boundary, does any one here know how to do this?? this is what I have worked out but it's wrong some how.

    guchar data[4] = {0, 0, 0, height};
gdk_property_change(gdk_window, gdk_x11_xatom_to_atom(gdk_x11_get_xatom_by_name("_NET_WM_STRUT")), gdk_x11_xatom_to_atom(gdk_x11_get_xatom_by_name("CARDINAL")), 32, GDK_PROP_MODE_REPLACE, data, 4);


thanks in advance for any help.



--


  .~.     In my life God comes first....
  /V\         but Linux is pretty high after that :-D
 /( )\    Francis (Grizzly) Smit
 ^^-^^    http://www.smit.id.au/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]