Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Use 'xprop' instead of 'wmctrl' to get the window manager. #79

Merged
merged 4 commits into from
Feb 17, 2016
Merged

Conversation

dylanaraps
Copy link
Owner

I did an strace of wmctrl -m and it turns out that it gets the window
manager name from _NET_WM_NAME. I did some googling and we
can use xprop to get the value of _NET_WM_NAME which means
that we can swap the dependency from wmctrl to xprop.

xprop is available almost everywhere which means that users running
X under Mac OS X and Windows will now get the window manager info
too!

I'm currently going through VMs testing this change but it seems like
it should work anyway.

dylanaraps added a commit that referenced this pull request Feb 17, 2016
Use 'xprop' instead of 'wmctrl' to get the window manager.
@dylanaraps dylanaraps merged commit ed953cd into master Feb 17, 2016
@dylanaraps dylanaraps deleted the xprop branch February 17, 2016 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant