Fixed left/right snapping when resizing on Linux.