aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/SessionLockManager.cpp
AgeCommit message (Collapse)Author
2024-11-27sessionLock: don't send motion events on every surface commit (#8584)Andre Toerien
2024-11-17renderer: add lockdead_screen_delay (#8467)Alexandre Acebedo
2024-10-19internal: Move CMonitor to SP (#8178)Vaxry
* move monitors to sp * XD
2024-10-17session-lock: reset seat grab on a new session lock (#8147)Maximilian Seidler
2024-09-04sessionLock: ensure sls focus in some edge cases (#7647)Maximilian Seidler
* input: return early in mouseMoveUnified when the session is locked * sessionLock: make make a commit an opportunity to focus session lock surfaces * compositor: allow resetting focus when session is locked * input: remove redundant PMONITOR checks PMONITOR is checked above * input: check isSessionLocked earlier in mouseMoveUnified A bit of reordering, so that we don't call some stuff that is irrelevant when the session is locked
2024-08-29renderer: better lockscreen dead behavior (#7574)Vaxry
--------- Co-authored-by: Mihai Fufezan <[email protected]>
2024-08-26misc: constify the remaining for loops (#7534)Tom Englund
now we roll loops at blazing constified speed.
2024-08-26core: make most for loops use const references (#7527)Tom Englund
why not let the compiler optimise things for us at hyprspeeds when we can.
2024-08-02sessionLock: don't sendLocked when session lock has already been destoyed ↵Maximilian Seidler
(#7150) * sessionLock: reset m_pSessionLock on destroy * sessionLock: only send locked when resource is good
2024-07-13session-lock: send `locked` after the lock screen is properly rendered (#6850)Junxuan Liao
The protocol says: > The locked event "must not be sent until a new "locked" frame (either from a > session lock surface or the compositor blanking the output) has been presented > on all outputs and no security sensitive normal/unlocked content is possibly > visible". This helps users ensure the screen is properly locked before suspending the machine. (e.g. with swaylock --ready-fd)
2024-06-25sessionLock: focus lock on creation based on mouse position (#6658)outfoxxed
* sessionLock: focus lock on creation based on mouse position * sessionLock: immediately unfocus any focused surfaces on lock
2024-06-08wayland/core: move to new impl (#6268)Vaxry
* wayland/core/dmabuf: move to new impl it's the final countdown
2024-05-07session-lock: don't allow events from rejected locksVaxry
fixes #5913
2024-05-05internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry
moves std::shared_ptrs to a new implementation Advantages: - you can dereference a weak_ptr directly. This will obviously segfault on a nullptr deref if it's expired. - this is useful to avoid the .lock() hell where we are 100% sure the pointer _should_ be valid. (and if it isn't, it should throw.) - weak_ptrs are still valid while the SP is being destroyed. - reasoning: while an object (e.g. CWindow) is being destroyed, its `weak_ptr self` should be accessible (the sp is still alive, and so is CWindow), but it's not because by stl it's already expired (to prevent resurrection) - this impl solves it differently. w_p is expired, but can still be dereferenced and used. Creating `s_p`s is not possible anymore, though. - this is useful in destructors and callbacks.
2024-04-30session-lock: move to new implVaxry
2024-04-20Fractional-scale: move to new implVaxry
2024-03-15sessionlock: refocus after destroy focused surface (#5117)drendog
* fix: refocus after destroy focused surface * refactor: minor refactor on refocus loop condition * refactor: minor refactor on condition * style: format code
2024-03-15lock: fix red screen issues with multiple monitors (#5100)Maximilian Seidler
* lock: use uint64_t for iMonitorID * lock: move activateLock to onNewSessionLock * lock: add red screen fade * lock: damage when fading the red screen and delay for screencopy * lock: remove redundant scheduleFrameForMonitor
2024-03-03config: improve config value infrastructureVaxry
2024-02-20sessionLock: send preferred fractional scalevaxerski
2024-02-18Migrate the config to hyprlang (#4656)Vaxry
* Migrate to hyprlang * pop up errors * fix swapped args * Meson & Nix: build with hyprlang * CI: add hyprlang to setup action * add infra for plugin stuff * fix hyprctl getoption * fix hyprctl getoption with json * format * fix post parse logic * fix autogen config * oops missed exec-once * fmt * fix ws rules * require 0.3.0 for hyprlang * nix: flaek * minor type fixes * fix cfg usages in swipe * use cvarlist for ws rules * fix throw in addPluginConfigVar * Nix: update hyprlang * minor fixes * fix disableLogs * mention hyprlang docs * bump hyprlang dep in cmake * Meson: bump min hyprlang version Nix: update hyprlang * minor fix * Nix: update meson patch --------- Co-authored-by: Mihai Fufezan <[email protected]>
2023-09-06internal: Formatter rework (#3186)Vaxry
2023-06-03deps: update wlrootsvaxerski
2023-05-13lock: add allow_session_lock_restorevaxerski
2023-02-18reset focus on lock surface destroyvaxerski
2023-02-03make a null surface focus reset lastfocusvaxerski
2023-02-03clear focus on failed unlock attemptvaxerski
2023-02-03Implement ext-session-lock-v1vaxerski