[GnomeMeeting-devel-list] Problems setting STRUT! Urgent!



Hello,

I am trying to set the Strut and dock the application to the Edge via Xlib.
The Problem is it's not working properly! What am I doing wrong!

Thank you very much!

Werner

[CODE]
dw = QApplication::desktop()->width();
h = 61;
dh = QApplication::desktop()->height();
long d=-1;
long vals [4]; 
vals [0] = 0; 
vals [1] = 0; 
vals [2] = 0; 
vals [3] = h;
long data[50];
int count = 0;

data[count++] =
XInternAtom(qt_xdisplay(),"_NET_WM_STATE_SKIP_TASKBAR",false);//_NET_WM_STAT
E_SKIP_TASKBAR
data[count++] = XInternAtom(qt_xdisplay(),"_NET_WM_STATE_SKIP_PAGER",false);

XChangeProperty(qt_xdisplay(), winId(),
XInternAtom(qt_xdisplay(),"_NET_WM_STATE",false), XA_ATOM,
32,PropModeReplace, (unsigned char *) data, count);

XChangeProperty(qt_xdisplay(), winId(),
XInternAtom(qt_xdisplay(),"_NET_WM_DESKTOP",false), XA_CARDINAL,32,
PropModeReplace, (unsigned char *) &d, 1);

XChangeProperty (qt_xdisplay(),
winId(),XInternAtom(qt_xdisplay(),"_NET_WM_STRUT",false), XA_CARDINAL,
32,PropModeReplace, (unsigned char *) vals, 4);

move( 0, dh-h  );

resize(dw, h);
[/CODE]




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