Correctly draw window snapping hints on multi-head systems
commit0718297e9ac0d10a2a8b73d75a103fde0a20eee3
authorTorrance, Douglas <dtorrance@piedmont.edu>
Fri, 20 Jan 2023 11:30:52 +0000 (20 11:30 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 20 Jan 2023 11:54:07 +0000 (20 11:54 +0000)
treea49362f7ee58b246c37312cc41708e5f7cdc7a6e
parent9cc16182d31850c0b4180b29dc915c6dfc5ff7e8
Correctly draw window snapping hints on multi-head systems

Previously, the transparent frames that were drawn prior to snapping a
window assumed that there was only one head, i.e., that the new
position and dimensions of the window would be based on the dimensions
of the entire screen.

However, this is not the case on multi-head systems, and so we now
base the transparent frame's position and dimensions on the current
head of the window.

We also refactor the code so that the new dimensions are computed in
the switch statement and finish with one final call to
drawTransparentFrame.
src/moveres.c