<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[I want to reserve space for the taskbar using Xlib.]]></title><description><![CDATA[<p dir="auto">I'm currently working on my own Linux distribution, and I'm designing a window that behaves like a taskbar.<br />
I researched how to secure an exclusive area for the taskbar,<br />
and found out that it's possible by modifying the X11 _NET_WM_STRUT property.<br />
I tried the code below, but it doesn't work.<br />
How can I make it work?</p>
<pre><code>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 *)&amp;insets, 4);
</code></pre>
]]></description><link>https://forum.qt.io/topic/158393/i-want-to-reserve-space-for-the-taskbar-using-xlib</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 23:36:40 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/158393.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Aug 2024 01:58:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I want to reserve space for the taskbar using Xlib. on Sun, 25 Aug 2024 18:27:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You might want to check projects such as <a href="https://lxqt-project.org/" target="_blank" rel="noopener noreferrer nofollow ugc">LXQt</a> that provides a desktop environment built on Qt for inspiration.</p>
]]></description><link>https://forum.qt.io/post/808051</link><guid isPermaLink="true">https://forum.qt.io/post/808051</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 25 Aug 2024 18:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to I want to reserve space for the taskbar using Xlib. on Sun, 25 Aug 2024 06:03:55 GMT]]></title><description><![CDATA[<p dir="auto">Im Sorry... I shouldn't have asked this in a Qt topic, since what I asked about was an Xlib issue...</p>
]]></description><link>https://forum.qt.io/post/808024</link><guid isPermaLink="true">https://forum.qt.io/post/808024</guid><dc:creator><![CDATA[taaDeveloper]]></dc:creator><pubDate>Sun, 25 Aug 2024 06:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to I want to reserve space for the taskbar using Xlib. on Sun, 25 Aug 2024 04:48:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/taadeveloper">@<bdi>taaDeveloper</bdi></a></p>
<p dir="auto">How is your question related to Qt? Isn't it pure X11 / Linux specific code?</p>
<blockquote>
<p dir="auto">How can I make it work?</p>
</blockquote>
<p dir="auto">I assume not with Qt, it might be out of range of something you can control by using Qt.</p>
]]></description><link>https://forum.qt.io/post/808019</link><guid isPermaLink="true">https://forum.qt.io/post/808019</guid><dc:creator><![CDATA[Pl45m4]]></dc:creator><pubDate>Sun, 25 Aug 2024 04:48:46 GMT</pubDate></item></channel></rss>