]> git.sur5r.net Git - i3/i3/commit - src/window.c
Respect Motif hint for window decorations
authorTony Crisci <tony@dubstepdish.com>
Wed, 15 Jan 2014 02:16:54 +0000 (21:16 -0500)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 18 Jan 2014 15:25:37 +0000 (16:25 +0100)
commitdee6264d57311174467159225c477f248d421da6
treec2a492b20f5951e1b0f42cb4d25054f1cd8ce6b0
parent10d7c1a993433ba7149704933f6d8b62cd4401f7
Respect Motif hint for window decorations

When the _MOTIF_WM_HINTS property of a window specifies it should have
no title bar, or no decorations at all, respond by setting the border
style of that container to BS_PIXEL or BS_NONE respectively.

This comes from the old Motif window manager. It was originally intended
to specify exactly what sort of decorations a window should have, and
exactly what sort of user input it should respond to. 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.

i3's implementation simply mirrors Gnome's Metacity. Official
documentation of this hint is nowhere to be found.

For more information see:
https://people.gnome.org/~tthurman/docs/metacity/xprops_8h-source.html
http://stackoverflow.com/questions/13787553/detect-if-a-x11-window-has-decorations

fixes #832
include/atoms.xmacro
include/window.h
src/manage.c
src/window.c