diff options
author | vaxerski <[email protected]> | 2023-07-14 19:56:50 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-07-14 20:02:31 +0200 |
commit | 459afcc47f7a8fd0b85c4b89645099e2643732b3 (patch) | |
tree | 498ee12edcf892221eba041f3bff4ab0d7fa29fe | |
parent | 06f5910365414d0d519f66c25bcb22709f8cb197 (diff) | |
download | Hyprland-459afcc47f7a8fd0b85c4b89645099e2643732b3.tar.gz Hyprland-459afcc47f7a8fd0b85c4b89645099e2643732b3.zip |
idle: fix reverse flag for new idle protocol
-rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index aeb6f5f0..e138dbdc 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2442,7 +2442,7 @@ void CCompositor::notifyIdleActivity() { wlr_idle_notifier_v1_notify_activity(g_pCompositor->m_sWLRIdleNotifier, g_pCompositor->m_sSeat.seat); } -void CCompositor::setIdleActivityInhibit(bool inhibit) { - wlr_idle_set_enabled(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sSeat.seat, inhibit); - wlr_idle_notifier_v1_set_inhibited(g_pCompositor->m_sWLRIdleNotifier, inhibit); +void CCompositor::setIdleActivityInhibit(bool enabled) { + wlr_idle_set_enabled(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sSeat.seat, enabled); + wlr_idle_notifier_v1_set_inhibited(g_pCompositor->m_sWLRIdleNotifier, !enabled); } |