Skip to content

How to set _NET_WM_STATE_ABOVE ? #929

Answered by psychon
eatradish asked this question in Q&A
Discussion options

You must be logged in to vote

From a quick look (sorry, not much time right now):

https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm46072576082640

A Client wishing to change the state of a window MUST send a _NET_WM_STATE client message to the root window (see below)

You are sending the client message to the target window, but it should be sent to the root window.

Also, instead of just doing flush() when you are done, I recommend sync() (which sends a request and waits for the reply). I think there were cases where flush()+immediately closing the connection caused requests not to be handled (the X11 server handled the disconnect before it handled the just-written data).

Edit: Also, you can run xprop

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eatradish
Comment options

Answer selected by eatradish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants