Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Round down X pos and height to nearest integer
This fixes window draw issues when compositing is enabled for un-evenly divisible X-axis dimensions (e.g. for thirds or sixths). This script will return a float to kwin, which X11 will balk at. When trying to resize windows to non-integer dimensions, the window will fail to be drawn correctly and can not be interacted with. --- The patch described in merge request linked below does not appear to fix this particular issue, even though it _should_. I tested using the Archlinux `kwin` package at 5.26.2.1-2 (which should include the patch; see below link), but the issue still persisted. So, instead, we can round our dimensions down to an integer before it's even sent to kwin. This may be unnecessary in the future, if the upstream bug is ever fixed, but it will not cause any harm except for an undetectable waste of CPU cycles to floor() the dimensions. --- Possible upstream fix: https://invent.kde.org/plasma/kwin/-/merge_requests/3123 Archlinux kwin package: archlinux/svntogit-packages@53384fe
- Loading branch information