mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-12 02:49:50 +01:00
Fix attempt to read private variable obeyInhibitors
This commit is contained in:
parent
e34ced7f09
commit
08911712c3
2 changed files with 7 additions and 1 deletions
|
@ -55,6 +55,10 @@ void CExtIdleNotification::onActivity() {
|
|||
updateTimer();
|
||||
}
|
||||
|
||||
bool CExtIdleNotification::inhibitorsAreObeyed() const {
|
||||
return obeyInhibitors;
|
||||
}
|
||||
|
||||
CIdleNotifyProtocol::CIdleNotifyProtocol(const wl_interface* iface, const int& ver, const std::string& name) : IWaylandProtocol(iface, ver, name) {
|
||||
;
|
||||
}
|
||||
|
@ -99,7 +103,7 @@ void CIdleNotifyProtocol::onActivity() {
|
|||
void CIdleNotifyProtocol::setInhibit(bool inhibited) {
|
||||
isInhibited = inhibited;
|
||||
for (auto const& n : m_vNotifications) {
|
||||
if (n->obeyInhibitors)
|
||||
if (n->inhibitorsAreObeyed())
|
||||
n->onActivity();
|
||||
}
|
||||
}
|
|
@ -17,6 +17,8 @@ class CExtIdleNotification {
|
|||
void onTimerFired();
|
||||
void onActivity();
|
||||
|
||||
bool inhibitorsAreObeyed() const;
|
||||
|
||||
private:
|
||||
SP<CExtIdleNotificationV1> resource;
|
||||
uint32_t timeoutMs = 0;
|
||||
|
|
Loading…
Reference in a new issue