Ah, thanks. The wording of it got me thrown off. One way I have found that works to actually remove decorationsis the _MOTIF_WM_HINTS property, and it uses the following structure in the data argument of xcb_change_property:<br>
<br>struct<br>  {<br>    uint32_t flags;<br>    uint32_t functions;<br>    uint32_t decorations;<br>    int32_t  inputMode;<br>    uint32_t status;<br>  } Hints;<br><br>Kind of off topic but is there any official XCB structure for this yet?<br>
<br><div class="gmail_quote">On Fri, Dec 31, 2010 at 8:41 PM, Vincent Torri <span dir="ltr">&lt;<a href="mailto:vtorri@univ-evry.fr">vtorri@univ-evry.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
On Fri, 31 Dec 2010, Cinolt wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I want to create my window to fill the entire screen with no decorations.<br>
According to the EWMH specification, I should set the _NET_WM_STATE property<br>
to have the _NET_WM_STATE_FULLSCREEN atom (<br>
<a href="http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507241" target="_blank">http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507241</a> ). How<br>
should I do this in XCB? This is my failed attempt, it appears as a regular<br>
window:<br>
</blockquote>
<br></div>
The documentation says:<br>
<br>
&quot;_NET_WM_STATE_FULLSCREEN indicates that the window should fill the entire screen and have no window decorations. Additionally the Window Manager is responsible for restoring the original geometry after a switch from fullscreen back to normal window. For example, a presentation program would use this hint.&quot;<br>

<br>
so that atom just **indicates** (to the Window manager) that your window is fullscreen (hence, for example (i think) the Window manager does not draw the border of the window). It&#39;s up to you to create a widnow of the size of the screen.<br>
<font color="#888888">
<br>
Vincent Torri</font><div><div></div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
...<br>
xcb_connection_t* c = xcb_connect(0, 0);<br>
...<br>
xcb_window_t w = xcb_generate_id(c);<br>
...<br>
xcb_intern_atom_cookie_t cookie = xcb_intern_atom(c, 0, 12,<br>
&quot;_NET_WM_STATE&quot;);<br>
xcb_intern_atom_reply_t* reply = xcb_intern_atom_reply(c, cookie, 0);<br>
<br>
xcb_intern_atom_cookie_t cookie2 = xcb_intern_atom(c, 0, 24,<br>
&quot;_NET_WM_STATE_FULLSCREEN&quot;);<br>
xcb_intern_atom_reply_t* reply2 = xcb_intern_atom_reply(c, cookie2, 0);<br>
<br>
xcb_change_property(c, XCB_PROP_MODE_REPLACE, w, (*reply).atom, ATOM, 32, 1,<br>
&amp;((reply2).atom);<br>
...<br>
<br>
I can set other properties such as the window name, so the other irrelevant<br>
code should be fine. Thanks in advance.<br>
<br>
</blockquote>
</div></div></blockquote></div><br>