Move X11-specific "skip close animation" handling to X11Window
This commit is contained in:
parent
d35f88adee
commit
1334b38ee1
4 changed files with 19 additions and 19 deletions
|
@ -354,22 +354,6 @@ xcb_window_t Window::frameId() const
|
|||
return m_client;
|
||||
}
|
||||
|
||||
Xcb::Property Window::fetchSkipCloseAnimation() const
|
||||
{
|
||||
return Xcb::Property(false, window(), atoms->kde_skip_close_animation, XCB_ATOM_CARDINAL, 0, 1);
|
||||
}
|
||||
|
||||
void Window::readSkipCloseAnimation(Xcb::Property &property)
|
||||
{
|
||||
setSkipCloseAnimation(property.toBool());
|
||||
}
|
||||
|
||||
void Window::getSkipCloseAnimation()
|
||||
{
|
||||
Xcb::Property property = fetchSkipCloseAnimation();
|
||||
readSkipCloseAnimation(property);
|
||||
}
|
||||
|
||||
bool Window::skipsCloseAnimation() const
|
||||
{
|
||||
return m_skipCloseAnimation;
|
||||
|
|
|
@ -1476,9 +1476,6 @@ protected:
|
|||
virtual std::unique_ptr<WindowItem> createItem(Scene *scene) = 0;
|
||||
|
||||
void setResourceClass(const QString &name, const QString &className = QString());
|
||||
Xcb::Property fetchSkipCloseAnimation() const;
|
||||
void readSkipCloseAnimation(Xcb::Property &prop);
|
||||
void getSkipCloseAnimation();
|
||||
|
||||
Output *m_output = nullptr;
|
||||
QRectF m_frameGeometry;
|
||||
|
|
|
@ -5178,4 +5178,20 @@ void X11Window::getWmClientMachine()
|
|||
clientMachine()->resolve(window(), wmClientLeader());
|
||||
}
|
||||
|
||||
Xcb::Property X11Window::fetchSkipCloseAnimation() const
|
||||
{
|
||||
return Xcb::Property(false, window(), atoms->kde_skip_close_animation, XCB_ATOM_CARDINAL, 0, 1);
|
||||
}
|
||||
|
||||
void X11Window::readSkipCloseAnimation(Xcb::Property &property)
|
||||
{
|
||||
setSkipCloseAnimation(property.toBool());
|
||||
}
|
||||
|
||||
void X11Window::getSkipCloseAnimation()
|
||||
{
|
||||
Xcb::Property property = fetchSkipCloseAnimation();
|
||||
readSkipCloseAnimation(property);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -381,6 +381,9 @@ private:
|
|||
Xcb::Property fetchWmClientLeader() const;
|
||||
void readWmClientLeader(Xcb::Property &p);
|
||||
void getWmClientLeader();
|
||||
Xcb::Property fetchSkipCloseAnimation() const;
|
||||
void readSkipCloseAnimation(Xcb::Property &prop);
|
||||
void getSkipCloseAnimation();
|
||||
|
||||
void configureRequest(int value_mask, qreal rx, qreal ry, qreal rw, qreal rh, int gravity, bool from_tool);
|
||||
NETExtendedStrut strut() const;
|
||||
|
|
Loading…
Reference in a new issue