I really appreciate that xfwm4 "intelligently" places windows to minimise overlap. However, I notice that windows are opened a few pixels away from the border or from other apps. I use Smallscreen as my xfwm4 theme, which has a small border, but I'd think that xfwm4 would account for that when determining the distance. Also, it always positions away from the notes I have shown on my screen, but I'd think those were on a different "level" than the apps.
xfwm4 computes the best place by evualating the overlap between windows. It uses a step of 8 pixels for that. On a anverage screen of 1024x768, it means 96 iterations. (1024 / 8) x (768 / 8) = 96 To achieve a 1 pixel precision, that would require 1024 x 768 = 1024768 For each iterations, xfwm4 has to go through every window present (and visible) and compute the overlap. We shall stay with 8 pixel steps.
Wouldn't it be possible to use the window snapping function after the initial placement so if the window would have been placed close enought to another window it would actually be snapped against the other window?