Move definition of X11Client::damageNotifyEvent() to x11client.cpp
One step closer to the bright future where one can disable X11 support at build time.
This commit is contained in:
parent
68ef6bcd7a
commit
34fc962ff1
2 changed files with 18 additions and 19 deletions
19
toplevel.cpp
19
toplevel.cpp
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue