[fbpanel] Re: Reserving part of the window
Brought to you by:
aanatoly
From: Martti K. <mar...@ax...> - 2004-03-05 11:04:28
|
I made a quick hack to fbpanel( to use with openbox3) to support STRUTS: void panel_start_gui(panel *p) .... Atom struts[12] = { 0, }; .... /***************************/ /* reserve space for panel */ struts[3] = p->height; /* 3 = BOTTOM */ struts[10] = 0; /* 10 = BOTTOM_X_START */ struts[11] = 1280; /* 11 = BOTTOM_X_END TODO: get window width here */ XChangeProperty(GDK_DISPLAY(), p->topxwin, a_NET_WM_STRUT, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &struts, 4); XChangeProperty(GDK_DISPLAY(), p->topxwin, a_NET_WM_STRUT_PARTIAL, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &struts, 12); .... This is propably a wrong place to set STRUT values so I suggest to check gothfox's patch to enable this feature. -- ********************************** Martti Kuutti Software Developer ********************************** |