Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezewindowmanager.cpp
Show First 20 Lines • Show All 840 Lines • ▼ Show 20 Line(s) | 113 | { | |||
---|---|---|---|---|---|
841 | 841 | | |||
842 | } | 842 | } | ||
843 | 843 | | |||
844 | //_______________________________________________________ | 844 | //_______________________________________________________ | ||
845 | void WindowManager::startDragX11( QWindow* window, const QPoint& position ) | 845 | void WindowManager::startDragX11( QWindow* window, const QPoint& position ) | ||
846 | { | 846 | { | ||
847 | #if BREEZE_HAVE_X11 | 847 | #if BREEZE_HAVE_X11 | ||
848 | // connection | 848 | // connection | ||
849 | auto connection( Helper::connection() ); | 849 | auto connection( QX11Info::connection() ); | ||
850 | 850 | | |||
851 | auto net_connection = connection; | 851 | auto net_connection = connection; | ||
852 | const qreal dpiRatio = window->devicePixelRatio(); | 852 | const qreal dpiRatio = window->devicePixelRatio(); | ||
853 | const QPoint origin = window->screen()->geometry().topLeft(); | 853 | const QPoint origin = window->screen()->geometry().topLeft(); | ||
854 | const QPoint native = (position - origin) * dpiRatio + origin; | 854 | const QPoint native = (position - origin) * dpiRatio + origin; | ||
855 | 855 | | |||
856 | xcb_ungrab_pointer( connection, XCB_TIME_CURRENT_TIME ); | 856 | xcb_ungrab_pointer( connection, XCB_TIME_CURRENT_TIME ); | ||
857 | NETRootInfo( net_connection, NET::WMMoveResize ).moveResizeRequest( | 857 | NETRootInfo( net_connection, NET::WMMoveResize ).moveResizeRequest( | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |