paperwm / PaperWM

Tiled scrollable window management for Gnome Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Focus mode resets on screen lock-unlock

valpackett opened this issue · comments

Describe the bug
Focus mode resets to DEFAULT on screen lock-unlock

To Reproduce
Steps to reproduce the behavior:

  1. Change focus mode
  2. Lock screen
  3. Unlock screen

Ah yes, good pickup. We'd prob want to save the modes for all spaces and restore them when unlock.

Note: PaperWM only has session mode user - Gnome doesn't generally allow extensions to have the unlock-dialog session mode which would mean that PaperWM could remain active during window locks.

We'd want to add the current focus mode to the SaveState that gets called when we disable the tiling module:

PaperWM/tiling.js

Line 3426 in 060c2d6

class SaveState {