I tried the patch, it works fine for the xterm itself, but there's a new problem: the xterms are moving unexpectedly when switching workspaces.
It's easy to reproduce:
open an xterm on a workspace, move to the next workspace and back. the xterm moved a few pixels upward. Do that several times and the title bar goes underneath the top panel, making the xterm unmovable (except with Alt+F7).
I tried the patch, it works fine for the xterm itself, but there's a new problem: the xterms are moving unexpectedly when switching workspaces.
It's easy to reproduce:
open an xterm on a workspace, move to the next workspace and back. the xterm moved a few pixels upward. Do that several times and the title bar goes underneath the top panel, making the xterm unmovable (except with Alt+F7).