Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Withdrawn windows interrupting --not-when-fullscreen if having _NET_WM_STATE_FULLSCREEN property #70

Open
Widowan opened this issue Sep 14, 2021 · 0 comments

Comments

@Widowan
Copy link

Widowan commented Sep 14, 2021

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 xprop after media viewer has been closed. bspc doesn't show that window as present anymore upon query.

3c3
< 		window state: Normal
---
> 		window state: Withdrawn
5c5
< _NET_WM_USER_TIME(CARDINAL) = 26633789
---
> _NET_WM_USER_TIME(CARDINAL) = 26637302

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

@Widowan Widowan changed the title Telegram's Media viewer interrupts --not-when-fullscreen while being withdrawn Withdrawn windows interrupting --not-when-fullscreen if having _NET_WM_STATE_FULLSCREEN property Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant