summaryrefslogtreecommitdiff
path: root/src/managers/SessionLockManager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* session-lock: send `locked` after the lock screen is properly rendered (#6850)Junxuan Liao2024-07-131-2/+13
| | | | | | | | | | 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)
* sessionLock: focus lock on creation based on mouse position (#6658)outfoxxed2024-06-251-1/+2
| | | | | * sessionLock: focus lock on creation based on mouse position * sessionLock: immediately unfocus any focused surfaces on lock
* wayland/core: move to new impl (#6268)Vaxry2024-06-081-3/+3
| | | | | * wayland/core/dmabuf: move to new impl it's the final countdown
* session-lock: don't allow events from rejected locksVaxry2024-05-071-0/+1
| | | | fixes #5913
* internal: new shared_ptr and weak_ptr implementation (#5883)Vaxry2024-05-051-4/+4
| | | | | | | | | | | 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.
* session-lock: move to new implVaxry2024-04-301-113/+76
|
* Fractional-scale: move to new implVaxry2024-04-201-1/+2
|
* sessionlock: refocus after destroy focused surface (#5117)drendog2024-03-151-0/+11
| | | | | | | | | * fix: refocus after destroy focused surface * refactor: minor refactor on refocus loop condition * refactor: minor refactor on condition * style: format code
* lock: fix red screen issues with multiple monitors (#5100)Maximilian Seidler2024-03-151-3/+19
| | | | | | | | | | | * 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
* config: improve config value infrastructureVaxry2024-03-031-2/+3
|
* sessionLock: send preferred fractional scalevaxerski2024-02-201-0/+2
|
* Migrate the config to hyprlang (#4656)Vaxry2024-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <fufexan@protonmail.com>
* internal: Formatter rework (#3186)Vaxry2023-09-061-3/+3
|
* deps: update wlrootsvaxerski2023-06-031-1/+1
|
* lock: add allow_session_lock_restorevaxerski2023-05-131-1/+5
|
* reset focus on lock surface destroyvaxerski2023-02-181-0/+3
|
* make a null surface focus reset lastfocusvaxerski2023-02-031-2/+0
|
* clear focus on failed unlock attemptvaxerski2023-02-031-0/+2
|
* Implement ext-session-lock-v1vaxerski2023-02-031-0/+153