5ae4620a24
An example to set all XTerms floating: for_window [class="XTerm"] mode floating To make all urxvts use a 1-pixel border: for_window [class="urxvt"] border 1pixel A less useful, but rather funny example: for_window [title="x200: ~/work"] mode floating The commands are not completely arbitrary. The commands above were tested, others may need some fixing. Internally, windows are compared against your criteria (class, title, …) when they are initially managed and whenever one of the relevant values change. Then, the specified command is run *once* (per window). It gets prefixed with a criteria to make it match only the specific window that triggered it. So, if you configure "mode floating", i3 runs something like '[id="8393923"] mode floating'.
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
#ifndef _WINDOW_H
|
|
#define _WINDOW_H
|
|
|
|
/**
|
|
* Updates the WM_CLASS (consisting of the class and instance) for the
|
|
* given window.
|
|
*
|
|
*/
|
|
void window_update_class(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
|
|
|
/**
|
|
* Updates the name by using _NET_WM_NAME (encoded in UTF-8) for the given
|
|
* window. Further updates using window_update_name_legacy will be ignored.
|
|
*
|
|
*/
|
|
void window_update_name(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
|
|
|
/**
|
|
* Updates the name by using WM_NAME (encoded in COMPOUND_TEXT). We do not
|
|
* touch what the client sends us but pass it to xcb_image_text_8. To get
|
|
* proper unicode rendering, the application has to use _NET_WM_NAME (see
|
|
* window_update_name()).
|
|
*
|
|
*/
|
|
void window_update_name_legacy(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
|
|
|
/**
|
|
* Updates the CLIENT_LEADER (logical parent window).
|
|
*
|
|
*/
|
|
void window_update_leader(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
/**
|
|
* Updates the TRANSIENT_FOR (logical parent window).
|
|
*
|
|
*/
|
|
void window_update_transient_for(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
/**
|
|
* Updates the _NET_WM_STRUT_PARTIAL (reserved pixels at the screen edges)
|
|
*
|
|
*/
|
|
void window_update_strut_partial(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
#endif
|