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

Emit wallpaper_changed less often #1800

Merged
merged 1 commit into from
May 29, 2017
Merged

Conversation

psychon
Copy link
Member

@psychon psychon commented May 29, 2017

Commit 222f0a1 optimised the case where we change the wallpaper
so that we can give the new wallpaper to Lua faster. However, contrary
to what was intended, it also caused another wallpaper update later when
the server told us that the wallpaper actually changed. This was because
the juggling with multiple X11 connections went wrong.

Fix this by using the right connection to actually change the wallpaper.

Signed-off-by: Uli Schlachter [email protected]

Commit 222f0a1 optimised the case where we change the wallpaper
so that we can give the new wallpaper to Lua faster. However, contrary
to what was intended, it also caused another wallpaper update later when
the server told us that the wallpaper actually changed. This was because
the juggling with multiple X11 connections went wrong.

Fix this by using the right connection to actually change the wallpaper.

Signed-off-by: Uli Schlachter <[email protected]>
@codecov
Copy link

codecov bot commented May 29, 2017

Codecov Report

Merging #1800 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1800      +/-   ##
==========================================
- Coverage   79.28%   79.24%   -0.04%     
==========================================
  Files         363      363              
  Lines       25793    25794       +1     
  Branches      982      982              
==========================================
- Hits        20450    20441       -9     
- Misses       5339     5350      +11     
+ Partials        4        3       -1
Flag Coverage Δ
#c_code 72.46% <100%> (-0.13%) ⬇️
#functionaltests 64.21% <100%> (-0.05%) ⬇️
#samples 42.15% <0%> (-0.01%) ⬇️
#unittests 30.35% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
root.c 79.76% <100%> (+0.11%) ⬆️
property.c 76.26% <0%> (-2.53%) ⬇️
event.c 62.01% <0%> (-0.86%) ⬇️
lib/awful/tag.lua 70.97% <0%> (-0.2%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8d4257...2b9332e. Read the comment docs.

@blueyed blueyed merged commit b5cdd06 into awesomeWM:master May 29, 2017
@blueyed
Copy link
Member

blueyed commented May 29, 2017

Thanks!

@psychon psychon deleted the make-grab-work branch May 30, 2017 06:05
petoju pushed a commit to petoju/awesome that referenced this pull request Sep 10, 2017
Commit 222f0a1 optimised the case where we change the wallpaper
so that we can give the new wallpaper to Lua faster. However, contrary
to what was intended, it also caused another wallpaper update later when
the server told us that the wallpaper actually changed. This was because
the juggling with multiple X11 connections went wrong.

Fix this by using the right connection to actually change the wallpaper.

Signed-off-by: Uli Schlachter <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants