A client is managing an X top-level window. samurai-x2 has the concept of windows and actors (see The Client concept)
Events:
Members:
apply the WM_NORMAL_HINTS (TODO: complete)
| Parameters: |
|
|---|
Unmap the actor window and set WM_STATE.
| Parameters: |
|
|---|
Focus the client. Do not call that, use Screen.focus instead.
As first, it dispatches the on_before_focus event. Then it grabs the input focus and raises the client window if bring_forward is True. After that, on_focus is dispatched.
returns a list of all referrers to self, presented by Python’s gc module.
That’s here for debugging using sx-web’s interface.
Install all client message handlers.
| Note: | called internally |
|---|
Handler for the _NET_ACTIVE_WINDOW client message.
If the window is banned (WM_STATE is not WMState.Normal), it is unbanned.
If it is called on an unmanaged window, it will not be handled - that’s what we want.
| Todo: | check if it’s on the correct desktop |
|---|
handler for WM_CHANGE_STATE.
This will iconify(?) me.
handler for _NET_WM_STATE.
That updates self.state and dispatches the ‘on_handle_net_wm_state’ event at least one time (or two, if two atoms were specified)