Prevent windows from drifting on restart.
commit3cd382bccc46b957c9a699fe5fa827f32704dfcd
authorIain Patterson <wm@iain.cx>
Fri, 16 Nov 2012 00:55:52 +0000 (15 16:55 -0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 16 Nov 2012 08:06:29 +0000 (16 08:06 +0000)
tree889923c23bd32b01204f31b3b9c2c700c6397499
parent27d55b3e33ebade69dcd5a5e5cc938ccafb69274
Prevent windows from drifting on restart.

Bug report from Paul Seelig:

"Yet another rather strange glitch:

- open three terminal windows
- repeatedly restart wmaker
- all windows slowly drift to the left and up by just a few pixels

If i remember correctly, this is also a longstanding issue and nothing
new. It is no showstopper either, as one rarely restarts wmaker."

The slight drifting left and up seems to have been due to
wWindowConfigure() accounting for the window border when placing, which
was fixed in an earlier commit.

Windows could still shuffle down, however, because wWindowConfigure()
was moving the window down to make room for its window frame.
We now move it up by the titlebar height to cancel out that movement.
src/window.c