From 79cf72d17ff42e5bc8eb1adbd98bb42aa71fb085 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 14 Jun 2010 12:15:02 -0400 Subject: Fix the EXTENTS reported on window frames. Change the order things are done on map, so we apply startup state without any states set first, thus getting all the functions possible for the window type etc. then change the order states are applied, as some remove the ability to apply others (ie fullscreen comes last). Add an oldsize to ObFrame that remembers the size of the frame last reported to the world through the EXTENTS property. If you frame_adjust_area(FAKE) then frame_adjust_area(NONFAKE), the EXTENTS would not be updated since the oldsize wasn't remembered across fake updates. Make the extentsrequest test ask about windows with states set also. --- openbox/frame.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbox/frame.h') diff --git a/openbox/frame.h b/openbox/frame.h index b0d99690..0e28b9f1 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -84,7 +84,8 @@ struct _ObFrame Window window; - Strut size; + Strut size; /* the size of the frame */ + Strut oldsize; /* the size of the frame last told to the client */ Rect area; gboolean visible; -- cgit v1.2.3