> > IIRC, this is correct. The current method of placement doesn't maintain a > list of free areas. >
in cvs I keep a single rectangle which knows the actual available size of the screen versus the real screen's size. The availableArea is reduced by windows which declare a 'strut' as per the netwm. Currently this is only the toolbar and the slit. Once blackbox receives netwm notifies apps like bbpager or the kde panel can also 'opt out' of the screen. The way this works is pretty simple. Look at your screen without any windows open on it other than the strut windows. Draw a box on the screen inside the area the windows delimit. This is now the availableArea. This is different than the proposal a few months back to have blackbox keep a list of open rectangles to be used by placeWindow in order to avoid looking for a location. The struts only affect the screen border and essentially shrink the screen's dimensions.
