I want to reserve space for the taskbar using Xlib.
-
I'm currently working on my own Linux distribution, and I'm designing a window that behaves like a taskbar.
I researched how to secure an exclusive area for the taskbar,
and found out that it's possible by modifying the X11 _NET_WM_STRUT property.
I tried the code below, but it doesn't work.
How can I make it work?Display *display = QX11Info::display(); long insets[4] = {0, 0, 500, 0}; XChangeProperty(display, winId(), XInternAtom(display, "_NET_WM_STRUT", False), XInternAtom(display,"CARDINAL",False) , 32, PropModeReplace, (unsigned char *)&insets, 4); -
I'm currently working on my own Linux distribution, and I'm designing a window that behaves like a taskbar.
I researched how to secure an exclusive area for the taskbar,
and found out that it's possible by modifying the X11 _NET_WM_STRUT property.
I tried the code below, but it doesn't work.
How can I make it work?Display *display = QX11Info::display(); long insets[4] = {0, 0, 500, 0}; XChangeProperty(display, winId(), XInternAtom(display, "_NET_WM_STRUT", False), XInternAtom(display,"CARDINAL",False) , 32, PropModeReplace, (unsigned char *)&insets, 4);How is your question related to Qt? Isn't it pure X11 / Linux specific code?
How can I make it work?
I assume not with Qt, it might be out of range of something you can control by using Qt.
-
Im Sorry... I shouldn't have asked this in a Qt topic, since what I asked about was an Xlib issue...