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

X event dropping with dbus #16

Open
retroj opened this issue Aug 21, 2015 · 3 comments
Open

X event dropping with dbus #16

retroj opened this issue Aug 21, 2015 · 3 comments
Labels

Comments

@retroj
Copy link
Owner

retroj commented Aug 21, 2015

I noticed that my active-window-title widget was failing to update reliably, and with the help of folks in #xmonad (the window manager I use), traced the problem to some kind of timing issue related to the dbus event loop. I have only isolated it as far as follows:

Run mowedline with an active-window-title widget and some other widget that can be written to:

$ mowedline -q -flex 1 -active-window-title -text-widget foo

Switch windows a lot. The active-window-title widget should update reliably.

Cause dbus messages to be sent to mowedline:

$ while :; do sleep 0.25; echo a; done | mowedline-client read foo

While switching windows, watch for the active-window-title widget to occasionally fail to update.

This issue is probably not specific to the active-window-title widget - that is just the most convenient way to see the problem, since it responds to PropertyNotify events with an obvious change.

@retroj retroj added the bug label Aug 21, 2015
@retroj
Copy link
Owner Author

retroj commented Aug 21, 2015

The problem seems not to occur if you have mowed-line client write to a non-existent widget. That means that widget lookup takes place, but widget-update, window-update-widget-dimensions, and window-expose do not get called. In the test case above, widget-update is only setting a variable. The other two are fairly complex procedures but not inordinately so.

@ryuslash
Copy link
Collaborator

I tried this and I'm unable to reproduce this in herbstluftwm with chicken 4.10.0 on Archlinux. I tried for several minutes to switch around normally, like a crazy person (as fast as my fingers can go) and I tried with shorter sleep times.

@ryuslash
Copy link
Collaborator

I tried this again, but this time on my 1.66Ghz single-core netbook, also with Archlinux, chicken 4.10.0 and herbstluftwm. I'm still unable to reproduce.

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

No branches or pull requests

2 participants