X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fwindow.h;h=7a248277abd09cf92fa564998f07602544d066f9;hb=67ec2333ee659e4b8ce90e75b94a518a2dee81c0;hp=60198b878f3517e04addc9c33744d4e06ef16d49;hpb=67ff74d4e3b6997a5ffe65b0ef35020145305d7e;p=i3%2Fi3 diff --git a/include/window.h b/include/window.h index 60198b87..7a248277 100644 --- a/include/window.h +++ b/include/window.h @@ -2,13 +2,12 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * window.c: Updates window attributes (X11 hints/properties). * */ -#ifndef _WINDOW_H -#define _WINDOW_H +#pragma once /** * Updates the WM_CLASS (consisting of the class and instance) for the @@ -57,10 +56,28 @@ void window_update_strut_partial(i3Window *win, xcb_get_property_reply_t *prop); */ void window_update_role(i3Window *win, xcb_get_property_reply_t *prop, bool before_mgmt); +/** + * Updates the _NET_WM_WINDOW_TYPE property. + * + */ +void window_update_type(i3Window *window, xcb_get_property_reply_t *reply); + /** * Updates the WM_HINTS (we only care about the input focus handling part). * */ -void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop); +void window_update_hints(i3Window *win, xcb_get_property_reply_t *prop, bool *urgency_hint); -#endif +/** + * 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);