This has been bothering me for a while, but when you open and close an image in telegram, xidlehook will still detect it's Media viewer as fullscreen window preventing sleep.
Here's xprop output (omitting icon) before opening an image even once, xidlehook works normally.
_NET_WM_ICON_NAME(UTF8_STRING) =
_NET_WM_ICON(CARDINAL) = ...
XdndAware(ATOM) = BITMAP
WM_NAME(STRING) = "Media viewer"
_NET_WM_NAME(UTF8_STRING) = "Media viewer"
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x0, 0x0, 0x0
_NET_WM_WINDOW_TYPE(ATOM) = _KDE_NET_WM_WINDOW_TYPE_OVERRIDE, _NET_WM_WINDOW_TYPE_NORMAL
_XEMBED_INFO(_XEMBED_INFO) = 0x0, 0x1
WM_CLIENT_LEADER(WINDOW): window id # 0x2000008
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x2000008
WM_CLIENT_MACHINE(STRING) = "widpc"
_NET_WM_PID(CARDINAL) = 2901314
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 33554447
WM_CLASS(STRING) = "telegram-desktop", "TelegramDesktop"
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified size: 640 by 480
window gravity: Static
Here's diff with an xprop taken while media viewer is open. xidlehook doesn't work (even though media viewer isn't fullscreen, it's floating).
0a1,6
> _NET_WM_DESKTOP(CARDINAL) = 0
> WM_STATE(WM_STATE):
> window state: Normal
> icon window: 0x0
> _NET_WM_USER_TIME(CARDINAL) = 26633789
> _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_MODAL
102c108,109
< user specified size: 640 by 480
---
> user specified location: 0, 0
> user specified size: 1920 by 1080
Here's diff with previous one and xpropafter media viewer has been closed. bspc doesn't show that window as present anymore upon query.
Perhaps either fix (if possible, I don't know anything about X) or feature to blacklist apps or any kind of workaround would be nice. WM is bspwm, if that matters
This has been bothering me for a while, but when you open and close an image in telegram,
xidlehook
will still detect it's Media viewer as fullscreen window preventing sleep. Here'sxprop
output (omitting icon) before opening an image even once,xidlehook
works normally.Here's diff with an
xprop
taken while media viewer is open.xidlehook
doesn't work (even though media viewer isn't fullscreen, it's floating).Here's diff with previous one and
xprop
after media viewer has been closed.bspc
doesn't show that window as present anymore upon query.Perhaps either fix (if possible, I don't know anything about X) or feature to blacklist apps or any kind of workaround would be nice. WM is
bspwm
, if that matters