Support _NET_FRAME_EXTENTS.
commit347d6f9fdac2d887a59517735e4fe933e2156028
authorIain Patterson <wm@iain.cx>
Wed, 4 Jul 2012 07:31:39 +0000 (4 08:31 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 4 Jul 2012 18:38:51 +0000 (4 20:38 +0200)
tree3469d0fb8f21c0b9013f7b0affa136715298a667
parent81eefca4ef70414d73048300058e5007f402dd7f
Support _NET_FRAME_EXTENTS.

This patch adds support for the _NET_FRAME_EXTENTS property as
described in the EWMH spec.  With it I was able to use the compton
compositing manager to draw fully opaque windows with semi-transparent
titlebars and resizebars.

Set the _NET_FRAME_EXTENTS property based on border widths and
titlebar/resizebar heights.

The EWMH spec says:

"_NET_FRAME_EXTENTS, left, right, top, bottom, CARDINAL[4]/32

The Window Manager MUST set _NET_FRAME_EXTENTS to the extents of the
window's frame.  left, right, top and bottom are widths of the
respective borders added by the Window Manager."
src/window.c
src/wmspec.c
src/wmspec.h