Commit 34fc962f authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Move definition of X11Client::damageNotifyEvent() to x11client.cpp

One step closer to the bright future where one can disable X11 support
at build time.
parent 68ef6bcd
......@@ -23,7 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "activities.h"
#endif
#include "atoms.h"
#include "x11client.h"
#include "client_machine.h"
#include "composite.h"
#include "effects.h"
......@@ -319,24 +318,6 @@ bool Toplevel::compositing() const
return Workspace::self()->compositing();
}
void X11Client::damageNotifyEvent()
{
if (m_syncRequest.isPending && isResize()) {
emit damaged(this, QRect());
m_isDamaged = true;
return;
}
if (!ready_for_painting) { // avoid "setReadyForPainting()" function calling overhead
if (m_syncRequest.counter == XCB_NONE) { // cannot detect complete redraw, consider done now
setReadyForPainting();
setupWindowManagementInterface();
}
}
Toplevel::damageNotifyEvent();
}
bool Toplevel::resetAndFetchDamage()
{
if (!m_isDamaged)
......
......@@ -4959,4 +4959,22 @@ void X11Client::applyWindowRules()
setBlockingCompositing(info->isBlockingCompositing());
}
void X11Client::damageNotifyEvent()
{
if (m_syncRequest.isPending && isResize()) {
emit damaged(this, QRect());
m_isDamaged = true;
return;
}
if (!readyForPainting()) { // avoid "setReadyForPainting()" function calling overhead
if (m_syncRequest.counter == XCB_NONE) { // cannot detect complete redraw, consider done now
setReadyForPainting();
setupWindowManagementInterface();
}
}
AbstractClient::damageNotifyEvent();
}
} // namespace
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment