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

load_icon inside XSynchronize #11

Open
mk-pmb opened this issue Apr 19, 2022 · 0 comments
Open

load_icon inside XSynchronize #11

mk-pmb opened this issue Apr 19, 2022 · 0 comments

Comments

@mk-pmb
Copy link

mk-pmb commented Apr 19, 2022

Do I understand correctly that XSynchronize gives us an exclusive lock on screen interaction? From the man page, it looks like it should be released. Does XCloseDisplay do that? Then a comment near XCloseDisplay should clarify that.

In any case, if it's a lock, we shall try and hold it for the shortest duration possible. File access can be slow depending on circumstances and storage medium. We should thus load the image data earlier, ideally even before we interact with X at all, because failure to load the icon voids any usefulness of the X interaction. And since X interaction always carries risks of bad side effects¹, we should be very conservative about them.

(¹ I'm currently a victim of bad xdotool freezes that neither me nor IRC can trace even after many hours of debugging.)

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