Skip to content

Commit

Permalink
run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
UjinT34 committed Jun 14, 2024
1 parent 1413189 commit 50950e3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/helpers/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,11 @@ void CMonitor::addDamage(const CBox* box) {

bool CMonitor::shouldSkipScheduleFrameOnMouseEvent() {
static auto PNOBREAK = CConfigValue<Hyprlang::INT>("cursor:no_break_fs_vrr");
static auto PMINRR = CConfigValue<Hyprlang::INT>("cursor:min_refresh_rate");
static auto PMINRR = CConfigValue<Hyprlang::INT>("cursor:min_refresh_rate");

// skip scheduling extra frames for fullsreen apps with vrr
bool shouldSkip = *PNOBREAK
&& output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED
&& activeWorkspace && activeWorkspace->m_bHasFullscreenWindow && activeWorkspace->m_efFullscreenMode == FULLSCREEN_FULL;
bool shouldSkip = *PNOBREAK && output->adaptive_sync_status == WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED && activeWorkspace && activeWorkspace->m_bHasFullscreenWindow &&
activeWorkspace->m_efFullscreenMode == FULLSCREEN_FULL;

// keep requested minimum refresh rate
if (shouldSkip && *PMINRR && lastPresentationTimer.getMillis() > 1000 / *PMINRR) {
Expand Down

0 comments on commit 50950e3

Please sign in to comment.