_NET_FRAME_EXTENTS fixes.
commit9ab2b642a6bf030c375a51ca9b2b27b6d51f1411
authorIain Patterson <wm@iain.cx>
Fri, 24 Aug 2012 16:59:30 +0000 (24 17:59 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 24 Aug 2012 21:05:44 +0000 (24 22:05 +0100)
tree38d572f79440e2c20d471e99c2fbee604bc4fbe5
parent39a5f3da0b0844e5544e2108699b9a5a4057ea83
_NET_FRAME_EXTENTS fixes.

Recalculate frame extents when the titlebar, resize bar or border are
enabled/disabled.

Account for border when calculating top and bottom frame extents.

Quoth I,

> I've just seen that _NET_FRAME_EXTENTS isn't updated when
> disabling or enabling the titlebar, resizebar and border of a window,
> so that needs to be fixed.

  The attached patch fixes _NET_FRAME_EXTENTS not updating when using
the inspector to disable or enable the titlebar, resizebar or border.
It also fixes not taking the border width into account when
calculating the top and bottom extents.

  With the patch the window's border is drawn for 32bpp urxvt windows
with compton.  The border still isn't black, however.  That's because
the border is taken from the screen's colormap rather than the
window's.  I'll have a fix for that soon.
src/winspector.c
src/wmspec.c