Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 2688 Lines • ▼ Show 20 Line(s) | 2650 | { | |||
---|---|---|---|---|---|
2689 | return true; | 2689 | return true; | ||
2690 | } | 2690 | } | ||
2691 | 2691 | | |||
2692 | bool Client::doStartMoveResize() | 2692 | bool Client::doStartMoveResize() | ||
2693 | { | 2693 | { | ||
2694 | bool has_grab = false; | 2694 | bool has_grab = false; | ||
2695 | // This reportedly improves smoothness of the moveresize operation, | 2695 | // This reportedly improves smoothness of the moveresize operation, | ||
2696 | // something with Enter/LeaveNotify events, looks like XFree performance problem or something *shrug* | 2696 | // something with Enter/LeaveNotify events, looks like XFree performance problem or something *shrug* | ||
2697 | // (http://lists.kde.org/?t=107302193400001&r=1&w=2) | 2697 | // (https://lists.kde.org/?t=107302193400001&r=1&w=2) | ||
2698 | QRect r = workspace()->clientArea(FullArea, this); | 2698 | QRect r = workspace()->clientArea(FullArea, this); | ||
2699 | m_moveResizeGrabWindow.create(r, XCB_WINDOW_CLASS_INPUT_ONLY, 0, NULL, rootWindow()); | 2699 | m_moveResizeGrabWindow.create(r, XCB_WINDOW_CLASS_INPUT_ONLY, 0, NULL, rootWindow()); | ||
2700 | m_moveResizeGrabWindow.map(); | 2700 | m_moveResizeGrabWindow.map(); | ||
2701 | m_moveResizeGrabWindow.raise(); | 2701 | m_moveResizeGrabWindow.raise(); | ||
2702 | updateXTime(); | 2702 | updateXTime(); | ||
2703 | const xcb_grab_pointer_cookie_t cookie = xcb_grab_pointer_unchecked(connection(), false, m_moveResizeGrabWindow, | 2703 | const xcb_grab_pointer_cookie_t cookie = xcb_grab_pointer_unchecked(connection(), false, m_moveResizeGrabWindow, | ||
2704 | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | | 2704 | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | | ||
2705 | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW, | 2705 | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW, | ||
▲ Show 20 Lines • Show All 808 Lines • Show Last 20 Lines |