[openbox] Can I dynamically change a client window's role?

Mikael Magnusson mikachu at gmail.com
Tue Mar 9 16:57:29 EST 2021


On 3/9/21, Parke <parke.nexus at gmail.com> wrote:
> I would like to dynamically change the actions a window performs in
> response to certain keypress and mouse events.
>
> Specifically: I want to make certain windows ignore mouse drag events
> (but only some of the time).
>
> I believe I would be able to implement this result if I were able to
> dynamically change the client's "role" (_OB_APP_ROLE).
>
> So, my question is:  Is it possible to dynamically change the
> _OB_APP_ROLE property for a pre-existing client window?

You can't, and it wouldn't affect anything either way. The role of a
window only serves to identify it uniquely for session restoration.

-- 
Mikael Magnusson


More information about the openbox mailing list