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

Awesome doesn't set _NET_WORKAREA #677

Closed
kapsh opened this issue Feb 7, 2016 · 2 comments
Closed

Awesome doesn't set _NET_WORKAREA #677

kapsh opened this issue Feb 7, 2016 · 2 comments

Comments

@kapsh
Copy link

kapsh commented Feb 7, 2016

There are no _NET_WORKAREA EWMH for Awesome's root window. For comparing, this is part of xprop -root dump in Openbox:

_NET_ACTIVE_WINDOW(WINDOW): window id # 0x60000d
_NET_CLIENT_LIST(WINDOW): window id # 0x60000d
_NET_SHOWING_DESKTOP(CARDINAL) = 0
_NET_CURRENT_DESKTOP(CARDINAL) = 0
_NET_DESKTOP_NAMES(UTF8_STRING) = "desktop 1", "desktop 2", "desktop 3", "desktop 4"
_NET_WORKAREA(CARDINAL) = 0, 0, 1920, 1080, 0, 0, 1920, 1080, 0, 0, 1920, 1080, 0, 0, 1920, 1080
_NET_DESKTOP_VIEWPORT(CARDINAL) = 0, 0, 0, 0, 0, 0, 0, 0

Yes, there is screen.workarea property in API. But third party applications cannot get this value in easy way.
For example I want to run rdesktop -g workarea as manpage says:

-g <geometry>
Desktop geometry (WxH). If geometry is the special word "workarea", 
the geometry will be fetched from the extended window manager hints 
property _NET_WORKAREA, from the root window.

Expected result is rdesktop window which covers desktop without wibox, but actual is fullscreen window.

@psychon
Copy link
Member

psychon commented Feb 7, 2016

We stopped setting _NET_WORKAREA in commit 9c02087 because, well, what should this property be set to in a multi-screen configuration?
The problem is that _NET_WORKAREA has to describe the workarea of all screens, so you cannot really compare this with screen[1].workare.

If you have a good idea on what to do here, feel free to say so. Otherwise I'll keep claiming "the standard is unimplementable".

@kapsh
Copy link
Author

kapsh commented Feb 7, 2016

Sounds reasonable. I need a couple of experiments on multi-screen config before answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants