2 * vim:ts=4:sw=4:expandtab
4 * i3 - an improved dynamic tiling window manager
5 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
7 * window.c: Updates window attributes (X11 hints/properties).
15 * Frees an i3Window and all its members.
18 void window_free(i3Window *win);
21 * Updates the WM_CLASS (consisting of the class and instance) for the
25 void window_update_class(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
28 * Updates the name by using _NET_WM_NAME (encoded in UTF-8) for the given
29 * window. Further updates using window_update_name_legacy will be ignored.
32 void window_update_name(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
35 * Updates the name by using WM_NAME (encoded in COMPOUND_TEXT). We do not
36 * touch what the client sends us but pass it to xcb_image_text_8. To get
37 * proper unicode rendering, the application has to use _NET_WM_NAME (see
38 * window_update_name()).
41 void window_update_name_legacy(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
44 * Updates the CLIENT_LEADER (logical parent window).
47 void window_update_leader(i3Window *win, xcb_get_property_reply_t *prop);
50 * Updates the TRANSIENT_FOR (logical parent window).
53 void window_update_transient_for(i3Window *win, xcb_get_property_reply_t *prop);
56 * Updates the _NET_WM_STRUT_PARTIAL (reserved pixels at the screen edges)
59 void window_update_strut_partial(i3Window *win, xcb_get_property_reply_t *prop);
62 * Updates the WM_WINDOW_ROLE
65 void window_update_role(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
68 * Updates the _NET_WM_WINDOW_TYPE property.
71 void window_update_type(i3Window *window, xcb_get_property_reply_t *reply);
74 * Updates the WM_HINTS (we only care about the input focus handling part).
77 void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop, bool *urgency_hint);
80 * Updates the MOTIF_WM_HINTS. The container's border style should be set to
81 * `motif_border_style' if border style is not BS_NORMAL.
83 * i3 only uses this hint when it specifies a window should have no
84 * title bar, or no decorations at all, which is how most window managers
87 * The EWMH spec intended to replace Motif hints with _NET_WM_WINDOW_TYPE, but
88 * it is still in use by popular widget toolkits such as GTK+ and Java AWT.
91 void window_update_motif_hints(i3Window *win, xcb_get_property_reply_t *prop, border_style_t *motif_border_style);