Problems to reserve space on the screen ("_NET_WM_STRUT_PARTIAL")

Jean Richard Lima jeanrlima at gmail.com
Fri Apr 25 11:04:53 PDT 2014


Hi!

I'm developing a Dash to run mainly in XFCE, but can run on others too.
I'm trying to reserve space in the display area so that other applications
do not occupy the same place in which it is the Dash, as the bar kde or
unity ubuntu tasks.
The code developed is running, but is not reserving the space, if I
maximinimizo another application it is underneath the Dash and not to limit
it.

I would like your help to understand what is wrong or what is missing in
the code. The Dash should be on the left side of the screen with the full
height of the screen, with 230 prixels wide and is called just before the
widget->show ():

    unsigned long desktop = 0xFFFFFFFF;


    XChangeProperty(QX11Info::display(), winId(),
XInternAtom(QX11Info::display(), "_NET_WM_DESKTOP", False),

                    XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char*>(&desktop), 1);


    move(x, y);


    QVector<unsigned long> values;

    values.fill(0, 12);


    values[0] = 230; //left

    values[1] = 0; //right

    values[2] = 0; //top

    values[3] = 0; //bottom


    values[4] = 0; //left_start_y

    values[5] = height(); //left_end_y

    values[6] = 0; //right_start_y

    values[7] = 0; //right_end_y


    values[8] = 0; //top_start_x

    values[9] = 0; //top_end_x

    values[10] = 0; //bottom_start_x

    values[11] = 0; //bottom_end_x


    XChangeProperty(QX11Info::display(), winId(),
XInternAtom(QX11Info::display(), "_NET_WM_STRUT_PARTIAL", False),

                    XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char*>(&values), 1);


    XChangeProperty(QX11Info::display(), winId(),
XInternAtom(QX11Info::display(), "_NET_WM_STRUT", False),

                    XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char*>(&values), 1);


    XChangeProperty(QX11Info::display(), winId(),
XInternAtom(QX11Info::display(), "_KDE_NET_WM_BLUR_BEHIND_REGION",
False),

                    XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char*>(&values), 1);



              Jean Richard Lima
        Consultor de Gestão e TIC
Software House de Projetos Específicos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20140425/a7fbde47/attachment.html>


More information about the xorg mailing list