Remove XDamageNotifyEvent* argument from Toplevel::damageNotifyEvent
It's not used... REVIEW: 110201
This commit is contained in:
parent
89c2fd5598
commit
eb6ce2b7c4
4 changed files with 7 additions and 9 deletions
2
client.h
2
client.h
|
@ -691,7 +691,7 @@ private:
|
|||
void leaveNotifyEvent(XCrossingEvent* e);
|
||||
void focusInEvent(XFocusInEvent* e);
|
||||
void focusOutEvent(XFocusOutEvent* e);
|
||||
virtual void damageNotifyEvent(XDamageNotifyEvent* e);
|
||||
virtual void damageNotifyEvent();
|
||||
|
||||
bool buttonPressEvent(Window w, int button, int state, int x, int y, int x_root, int y_root);
|
||||
bool buttonReleaseEvent(Window w, int button, int state, int x, int y, int x_root, int y_root);
|
||||
|
|
|
@ -865,10 +865,8 @@ xcb_pixmap_t Toplevel::createWindowPixmap()
|
|||
return pix;
|
||||
}
|
||||
|
||||
void Toplevel::damageNotifyEvent(XDamageNotifyEvent* e)
|
||||
void Toplevel::damageNotifyEvent()
|
||||
{
|
||||
Q_UNUSED(e)
|
||||
|
||||
m_isDamaged = true;
|
||||
|
||||
// Note: The rect is supposed to specify the damage extents,
|
||||
|
@ -882,7 +880,7 @@ bool Toplevel::compositing() const
|
|||
return Workspace::self()->compositing();
|
||||
}
|
||||
|
||||
void Client::damageNotifyEvent(XDamageNotifyEvent* e)
|
||||
void Client::damageNotifyEvent()
|
||||
{
|
||||
#ifdef HAVE_XSYNC
|
||||
if (syncRequest.isPending && isResize()) {
|
||||
|
@ -900,7 +898,7 @@ void Client::damageNotifyEvent(XDamageNotifyEvent* e)
|
|||
setReadyForPainting();
|
||||
#endif
|
||||
|
||||
Toplevel::damageNotifyEvent(e);
|
||||
Toplevel::damageNotifyEvent();
|
||||
}
|
||||
|
||||
bool Toplevel::resetAndFetchDamage()
|
||||
|
|
|
@ -680,7 +680,7 @@ bool Client::windowEvent(XEvent* e)
|
|||
}
|
||||
if (e->xany.window == frameId()) {
|
||||
if (e->type == Xcb::Extensions::self()->damageNotifyEvent())
|
||||
damageNotifyEvent(reinterpret_cast< XDamageNotifyEvent* >(e));
|
||||
damageNotifyEvent();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -1638,7 +1638,7 @@ bool Unmanaged::windowEvent(XEvent* e)
|
|||
emit geometryShapeChanged(this, geometry());
|
||||
}
|
||||
if (e->type == Xcb::Extensions::self()->damageNotifyEvent())
|
||||
damageNotifyEvent(reinterpret_cast< XDamageNotifyEvent* >(e));
|
||||
damageNotifyEvent();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -353,7 +353,7 @@ protected:
|
|||
void setWindowHandles(Window client, Window frame);
|
||||
void detectShape(Window id);
|
||||
virtual void propertyNotifyEvent(XPropertyEvent* e);
|
||||
virtual void damageNotifyEvent(XDamageNotifyEvent* e);
|
||||
virtual void damageNotifyEvent();
|
||||
xcb_pixmap_t createWindowPixmap();
|
||||
void discardWindowPixmap();
|
||||
void addDamageFull();
|
||||
|
|
Loading…
Reference in a new issue