2011-10-25 22:19:38 +02:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
2015-04-04 02:17:56 +02:00
|
|
|
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
2011-10-25 22:19:38 +02:00
|
|
|
*
|
|
|
|
* window.c: Updates window attributes (X11 hints/properties).
|
|
|
|
*
|
|
|
|
*/
|
2013-12-29 03:11:50 +01:00
|
|
|
#pragma once
|
2010-04-13 17:22:34 +02:00
|
|
|
|
2010-07-13 11:35:05 +02:00
|
|
|
/**
|
|
|
|
* Updates the WM_CLASS (consisting of the class and instance) for the
|
|
|
|
* given window.
|
|
|
|
*
|
|
|
|
*/
|
2011-05-15 20:10:25 +02:00
|
|
|
void window_update_class(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
2010-07-13 11:35:05 +02: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.
|
|
|
|
*
|
|
|
|
*/
|
2011-05-15 20:10:25 +02:00
|
|
|
void window_update_name(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
2010-07-13 11:35:05 +02: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()).
|
|
|
|
*
|
|
|
|
*/
|
2011-05-15 20:10:25 +02:00
|
|
|
void window_update_name_legacy(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
2010-04-13 17:22:34 +02:00
|
|
|
|
2010-11-12 23:46:03 +01:00
|
|
|
/**
|
|
|
|
* Updates the CLIENT_LEADER (logical parent window).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_leader(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
|
2010-11-13 01:19:21 +01:00
|
|
|
/**
|
|
|
|
* Updates the TRANSIENT_FOR (logical parent window).
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_transient_for(i3Window *win, xcb_get_property_reply_t *prop);
|
|
|
|
|
2011-02-21 14:27:32 +01:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2011-09-18 17:05:10 +02:00
|
|
|
/**
|
|
|
|
* Updates the WM_WINDOW_ROLE
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_role(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt);
|
|
|
|
|
2015-04-19 00:29:31 +02:00
|
|
|
/**
|
|
|
|
* Updates the _NET_WM_WINDOW_TYPE property.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_type(i3Window *window, xcb_get_property_reply_t *reply);
|
|
|
|
|
2012-01-18 20:16:57 +01:00
|
|
|
/**
|
|
|
|
* Updates the WM_HINTS (we only care about the input focus handling part).
|
|
|
|
*
|
|
|
|
*/
|
2013-09-24 07:47:36 +02:00
|
|
|
void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop, bool *urgency_hint);
|
2014-01-15 03:16:54 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Updates the MOTIF_WM_HINTS. The container's border style should be set to
|
|
|
|
* `motif_border_style' if border style is not BS_NORMAL.
|
|
|
|
*
|
|
|
|
* i3 only uses this hint when it specifies a window should have no
|
|
|
|
* title bar, or no decorations at all, which is how most window managers
|
|
|
|
* handle it.
|
|
|
|
*
|
|
|
|
* The EWMH spec intended to replace Motif hints with _NET_WM_WINDOW_TYPE, but
|
|
|
|
* it is still in use by popular widget toolkits such as GTK+ and Java AWT.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void window_update_motif_hints(i3Window *win, xcb_get_property_reply_t *prop, border_style_t *motif_border_style);
|