i3
|
#include "all.h"
Go to the source code of this file.
Macros | |
#define | I3__FILE__ "window.c" |
Functions | |
void | window_update_class (i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt) |
Updates the WM_CLASS (consisting of the class and instance) for the given window. | |
void | window_update_name (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. | |
void | window_update_name_legacy (i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt) |
Updates the name by using WM_NAME (encoded in COMPOUND_TEXT). | |
void | window_update_leader (i3Window *win, xcb_get_property_reply_t *prop) |
Updates the CLIENT_LEADER (logical parent window). | |
void | window_update_transient_for (i3Window *win, xcb_get_property_reply_t *prop) |
Updates the TRANSIENT_FOR (logical parent window). | |
void | window_update_strut_partial (i3Window *win, xcb_get_property_reply_t *prop) |
Updates the _NET_WM_STRUT_PARTIAL (reserved pixels at the screen edges) | |
void | window_update_role (i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt) |
Updates the WM_WINDOW_ROLE. | |
void | window_update_hints (i3Window *win, xcb_get_property_reply_t *prop) |
Updates the WM_HINTS (we only care about the input focus handling part). | |
void window_update_class | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop, | ||
bool | before_mgmt | ||
) |
Updates the WM_CLASS (consisting of the class and instance) for the given window.
Definition at line 19 of file window.c.
References Window::class_class, Window::class_instance, DLOG, FREE, LOG, run_assignments(), and sstrdup().
Referenced by manage_window().
void window_update_hints | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop | ||
) |
Updates the WM_HINTS (we only care about the input focus handling part).
Definition at line 231 of file window.c.
References DLOG, Window::doesnt_accept_focus, FREE, LOG, xcb_icccm_get_wm_hints_from_reply, and xcb_icccm_wm_hints_t.
Referenced by handle_hints(), and manage_window().
void window_update_leader | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop | ||
) |
Updates the CLIENT_LEADER (logical parent window).
Definition at line 125 of file window.c.
References DLOG, FREE, and Window::leader.
Referenced by handle_clientleader_change(), and manage_window().
void window_update_name | ( | 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.
Definition at line 56 of file window.c.
References DLOG, FREE, i3string_as_utf8(), i3string_free(), i3string_from_utf8_with_length(), LOG, Window::name, Window::name_x_changed, run_assignments(), and Window::uses_net_wm_name.
Referenced by handle_windowname_change(), and manage_window().
void window_update_name_legacy | ( | 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()).
Definition at line 88 of file window.c.
References DLOG, FREE, i3string_as_utf8(), i3string_free(), i3string_from_utf8_with_length(), LOG, Window::name, Window::name_x_changed, run_assignments(), and Window::uses_net_wm_name.
Referenced by handle_windowname_change_legacy(), and manage_window().
void window_update_role | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop, | ||
bool | before_mgmt | ||
) |
Updates the WM_WINDOW_ROLE.
Definition at line 198 of file window.c.
References DLOG, FREE, LOG, Window::role, and run_assignments().
Referenced by handle_windowrole_change(), and manage_window().
void window_update_strut_partial | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop | ||
) |
Updates the _NET_WM_STRUT_PARTIAL (reserved pixels at the screen edges)
Definition at line 173 of file window.c.
References DLOG, FREE, and Window::reserved.
Referenced by manage_window().
void window_update_transient_for | ( | i3Window * | win, |
xcb_get_property_reply_t * | prop | ||
) |
Updates the TRANSIENT_FOR (logical parent window).
Definition at line 149 of file window.c.
References DLOG, FREE, Window::transient_for, and xcb_icccm_get_wm_transient_for_from_reply.
Referenced by handle_transient_for(), and manage_window().