Fix #22
Issue was caused by usage of pos() method in mouseMoveEvent for measuring distance traversed by mouse cursor. According to Qt5 documentation that method should not be used on X11 systems in mouseMoveEvent method. Changed to use globalPos() instead.
Fix #23
Issue was caused by setting maximum width for QMenuBar that with default size policy (QSizePolicy::Preferred) leads to wrong behaviour.
Additional changes:
mouse cursor changes during window dragging (required two minor hacks).
Fix #22 Issue was caused by usage of pos() method in mouseMoveEvent for measuring distance traversed by mouse cursor. According to Qt5 documentation that method should not be used on X11 systems in mouseMoveEvent method. Changed to use globalPos() instead.
Fix #23 Issue was caused by setting maximum width for QMenuBar that with default size policy (QSizePolicy::Preferred) leads to wrong behaviour.
Additional changes: