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

Fix bad query_x11_windows early returns #1864

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented Apr 25, 2024

Forgot to negate vector.empty() in query_x11_windows, this made it always do the most expensive check.

Also disabled full tree traversal from event propagation code as it's obviously too slow.

Fixes #1852.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@github-actions github-actions bot added sources PR modifies project sources display: x11 Issue related to X11 backend labels Apr 25, 2024
Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit f60be21
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/662adddd85ab0c0008e3d304

@Caellian Caellian linked an issue Apr 25, 2024 that may be closed by this pull request
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian Caellian marked this pull request as ready for review April 25, 2024 22:50
@Caellian Caellian added the mouse events Issue or PR related to mouse events label Apr 25, 2024
@brndnmtthws brndnmtthws added the bug Bug report or bug fix PR label Apr 26, 2024
@Caellian Caellian merged commit 71c4e6e into main Apr 26, 2024
62 checks passed
@Caellian Caellian deleted the fix/bad-client-list-check branch April 26, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR display: x11 Issue related to X11 backend mouse events Issue or PR related to mouse events sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Querying windows every event causes significant CPU usage
2 participants