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

compton cannot match atom arrays properly #408

Open
Airblader opened this issue Jan 20, 2017 · 0 comments
Open

compton cannot match atom arrays properly #408

Airblader opened this issue Jan 20, 2017 · 0 comments

Comments

@Airblader
Copy link

Airblader commented Jan 20, 2017

The order of atoms in, say, _NET_WM_STATE is not defined. If we want to match on windows with _NET_WM_STATE_HIDDEN, then

_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'

only works if it's the first atom in that list, but many others might be set as well. We cannot use an index because we don't know the order. A workaround would be duplicating with sufficiently many indices:

_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN',
_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_HIDDEN',
_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_HIDDEN',
_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_HIDDEN',
_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_HIDDEN',

-However this crashes compton due to out of bound reads.-

Edit: compton only spits out out of bound reads, but doesn't actually crash and the workaround works.

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