2010-04-13 11:22:34 -04:00
|
|
|
#ifndef _WINDOW_H
|
|
|
|
#define _WINDOW_H
|
|
|
|
|
2010-07-13 05:35:05 -04:00
|
|
|
/**
|
|
|
|
* Updates the WM_CLASS (consisting of the class and instance) for the
|
|
|
|
* given window.
|
|
|
|
*
|
|
|
|
*/
|
2010-04-13 11:22:34 -04:00
|
|
|
void window_update_class(i3Window *win, xcb_get_property_reply_t *prop);
|
2010-07-13 05:35:05 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2010-04-13 11:22:34 -04:00
|
|
|
void window_update_name(i3Window *win, xcb_get_property_reply_t *prop);
|
2010-07-13 05:35:05 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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()).
|
|
|
|
*
|
|
|
|
*/
|
2010-04-13 11:46:54 -04:00
|
|
|
void window_update_name_legacy(i3Window *win, xcb_get_property_reply_t *prop);
|
2010-04-13 11:22:34 -04:00
|
|
|
|
2010-11-12 17:46:03 -05:00
|
|
|
/**
|
|
|
|
* Updates the CLIENT_LEADER (logical parent window).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_leader(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
|
2010-11-12 19:19:21 -05:00
|
|
|
/**
|
|
|
|
* Updates the TRANSIENT_FOR (logical parent window).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_transient_for(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
|
2010-04-13 11:22:34 -04:00
|
|
|
#endif
|