Closed
Description
Describe the bug
Starting kitty with --start-as=fullscreen will disable DPMS sleep, independent of kitty being visible on the current workspace or even if no longer in fullscreen mode. This with wayfire running as the compositor.
To Reproduce
- Set DPMS timeout to a low value in your wayland compositor or DE.
- Start kitty with option "--start-as=fullscreen"
- Move away from the workspace where kitty is running
- Observe that DPMS does not kick in after $timeout
- Move back to workspace with kitty running in fullscreen. shift-ctrl-f11 to change it to windows state.
- Observe that DPMS still doesn't kick in
Environment details
kitty 0.29.2 created by Kovid Goyal
Linux skalleper 6.4.6-gentoo #3 SMP Tue Aug 15 23:58:25 CEST 2023 x86_64
This is skalleper (Linux x86_64 6.4.6-gentoo) 14:14:26
DISTRIB_ID="Gentoo"
Running under: Wayland
Frozen: False
Paths:
kitty: /usr/bin/kitty
base dir: /usr/lib64/kitty
extensions dir: /usr/lib64/kitty/kitty
system shell: /bin/bash
Loaded config files:
/home/dagb/.config/kitty/kitty.conf
Config options different from defaults:
cursor_stop_blinking_after 3.0
enabled_layouts ['grid:split_axis=horizontal', 'vertical', 'splits:split_axis=horizo>
focus_follows_mouse True
font_family FiraCode Nerd Font Mono
startup_session /home/dagb/.kitty
Added shortcuts:
f5 → launch --location=hsplit
f6 → launch --location=vsplit
shift+down → move_window down
shift+left → move_window left
shift+right → move_window right
shift+up → move_window up
Changed shortcuts:
shift+insert → paste_from_clipboard
Important environment variables seen by the kitty process:
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/>
LANG no
EDITOR /bin/nano
SHELL /bin/bash
DISPLAY :0
WAYLAND_DISPLAY wayland-1
USER dagb
XCURSOR_SIZE 24
XDG_CONFIG_DIRS /etc/xdg
XDG_DATA_HOME /home/dagb/
XDG_CONFIG_HOME /home/dagb/.config/
XDG_SEAT seat0
XDG_SESSION_TYPE wayland
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_CLASS user
XDG_VTNR 2
XDG_SESSION_ID c25
XDG_RUNTIME_DIR /run/user/1000
LC_ALL nb_NO.utf8
XDG_DATA_DIRS /usr/local/share:/usr/share
This debug output has been copied to the clipboard
Additional context
I initially reported this with the wayfire project. See:
WayfireWM/wayfire#1888
Reading and parsing the response to the best of my effort, I wonder if my observation counts as two separate bugs? Wayfire should ignore kitty's idle inhibitor when kitty isn't in view. And kitty should not have one, when not in fullscreen mode.
Thank you for kitty!