output: handle needs_frame
This commit is contained in:
parent
cd1b982b2a
commit
41d1fdedf2
4 changed files with 15 additions and 4 deletions
|
|
@ -99,6 +99,7 @@ namespace Events {
|
|||
DYNLISTENFUNC(monitorDestroy);
|
||||
DYNLISTENFUNC(monitorStateRequest);
|
||||
DYNLISTENFUNC(monitorDamage);
|
||||
DYNLISTENFUNC(monitorNeedsFrame);
|
||||
|
||||
// XWayland
|
||||
LISTENER(readyXWayland);
|
||||
|
|
|
|||
|
|
@ -203,3 +203,9 @@ void Events::listener_monitorDamage(void* owner, void* data) {
|
|||
|
||||
PMONITOR->addDamage(E->damage);
|
||||
}
|
||||
|
||||
void Events::listener_monitorNeedsFrame(void* owner, void* data) {
|
||||
const auto PMONITOR = (CMonitor*)owner;
|
||||
|
||||
g_pCompositor->scheduleFrameForMonitor(PMONITOR);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue