Changeset View
Changeset View
Standalone View
Standalone View
x11client.cpp
Show First 20 Lines • Show All 2628 Lines • ▼ Show 20 Line(s) | 2626 | { | |||
---|---|---|---|---|---|
2629 | } | 2629 | } | ||
2630 | } | 2630 | } | ||
2631 | 2631 | | |||
2632 | xcb_window_t X11Client::frameId() const | 2632 | xcb_window_t X11Client::frameId() const | ||
2633 | { | 2633 | { | ||
2634 | return m_frame; | 2634 | return m_frame; | ||
2635 | } | 2635 | } | ||
2636 | 2636 | | |||
2637 | QRect X11Client::inputGeometry() const | ||||
2638 | { | ||||
2639 | // Notice that the buffer geometry corresponds to the geometry of the frame window. | ||||
2640 | if (isDecorated()) { | ||||
2641 | return m_bufferGeometry + decoration()->resizeOnlyBorders(); | ||||
2642 | } | ||||
2643 | return m_bufferGeometry; | ||||
2644 | } | ||||
2645 | | ||||
2637 | QRect X11Client::bufferGeometry() const | 2646 | QRect X11Client::bufferGeometry() const | ||
2638 | { | 2647 | { | ||
2639 | return m_bufferGeometry; | 2648 | return m_bufferGeometry; | ||
2640 | } | 2649 | } | ||
2641 | 2650 | | |||
2642 | QMargins X11Client::bufferMargins() const | 2651 | QMargins X11Client::bufferMargins() const | ||
2643 | { | 2652 | { | ||
2644 | return QMargins(borderLeft(), borderTop(), borderRight(), borderBottom()); | 2653 | return QMargins(borderLeft(), borderTop(), borderRight(), borderBottom()); | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | |||||
2711 | QRect X11Client::frameRectToBufferRect(const QRect &rect) const | 2720 | QRect X11Client::frameRectToBufferRect(const QRect &rect) const | ||
2712 | { | 2721 | { | ||
2713 | if (isDecorated()) { | 2722 | if (isDecorated()) { | ||
2714 | return rect; | 2723 | return rect; | ||
2715 | } | 2724 | } | ||
2716 | return frameRectToClientRect(rect); | 2725 | return frameRectToClientRect(rect); | ||
2717 | } | 2726 | } | ||
2718 | 2727 | | |||
2728 | QMatrix4x4 X11Client::inputTransformation() const | ||||
2729 | { | ||||
2730 | QMatrix4x4 matrix; | ||||
2731 | matrix.translate(-m_bufferGeometry.x(), -m_bufferGeometry.y()); | ||||
2732 | return matrix; | ||||
2733 | } | ||||
2734 | | ||||
2719 | Xcb::Property X11Client::fetchShowOnScreenEdge() const | 2735 | Xcb::Property X11Client::fetchShowOnScreenEdge() const | ||
2720 | { | 2736 | { | ||
2721 | return Xcb::Property(false, window(), atoms->kde_screen_edge_show, XCB_ATOM_CARDINAL, 0, 1); | 2737 | return Xcb::Property(false, window(), atoms->kde_screen_edge_show, XCB_ATOM_CARDINAL, 0, 1); | ||
2722 | } | 2738 | } | ||
2723 | 2739 | | |||
2724 | void X11Client::readShowOnScreenEdge(Xcb::Property &property) | 2740 | void X11Client::readShowOnScreenEdge(Xcb::Property &property) | ||
2725 | { | 2741 | { | ||
2726 | //value comes in two parts, edge in the lower byte | 2742 | //value comes in two parts, edge in the lower byte | ||
▲ Show 20 Lines • Show All 2275 Lines • Show Last 20 Lines |