src/window.c File Reference

#include "all.h"
Include dependency graph for window.c:

Go to the source code of this file.

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).

Function Documentation

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 15 of file window.c.

References Window::class_class, Window::class_instance, DLOG, FREE, LOG, run_assignments(), and sstrdup().

Referenced by manage_window().

Here is the call graph for this function:

void window_update_leader ( i3Window win,
xcb_get_property_reply_t *  prop 
)

Updates the CLIENT_LEADER (logical parent window).

Definition at line 150 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 52 of file window.c.

References convert_utf8_to_ucs2(), DLOG, FREE, LOG, Window::name_json, Window::name_len, Window::name_x, Window::name_x_changed, run_assignments(), and Window::uses_net_wm_name.

Referenced by handle_windowname_change(), and manage_window().

Here is the call graph for this function:

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 104 of file window.c.

References DLOG, FREE, LOG, Window::name_json, Window::name_len, Window::name_x, Window::name_x_changed, run_assignments(), sstrdup(), and Window::uses_net_wm_name.

Referenced by handle_windowname_change_legacy(), and manage_window().

Here is the call graph for this function:

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 198 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 174 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().


Generated on 7 Feb 2013 for i3 by  doxygen 1.6.1