i3lock-blur icon indicating copy to clipboard operation
i3lock-blur copied to clipboard

Blurring cuts in and out

Open karulont opened this issue 9 years ago • 19 comments

I received a "bug report".

The blurring cuts in and out when I use this; one moment it's blurred, then the next it's clear, then it's blurred again, seeming to update in time with the clock on my statusbar.

  • Celti

karulont avatar Sep 20 '14 10:09 karulont

I believe that this thing might happen when used together with some other app, which tries to write to the X11 overlay window.

When somebody else has this problem, then let me know. But for now, I close this issue.

karulont avatar Oct 25 '14 19:10 karulont

I noticed the same "ticking" bug with the last release on Arch.

bchretien avatar Jan 22 '15 13:01 bchretien

Are you running a composer? What windowmanager are you using? What Desktop environment?

karulont avatar Jan 23 '15 14:01 karulont

  • Window manager: i3
  • Compositor: compton
  • No desktop environment
  • Things running: i3blocks (for i3bar), tmux sessions inside termite, qutebrowser
  • Setup: dualscreen

I tried disabling i3blocks since this is the only thing "ticking" (the bar is updated at some given intervals), and this bug stopped. I also observe some visual artifacts when unlocking: some parts remain blurred (e.g. tab bar of my browser, terminals etc.), which forces me to refresh them manually.

All of these bugs do not happen when the blurring feature is not enabled.

bchretien avatar Jan 23 '15 14:01 bchretien

i3blocks probably just updates the screen, which causes a redraw. You can put something other to the background, for example leave a video playing. That should rule out i3blocks.

I think that the problem is with compton. i3lock-blur uses the same overlay window as compton.

I got some university stuff going on right now, but I will find time next week, to look into it. And test it with compton myself.

karulont avatar Jan 23 '15 16:01 karulont

Indeed, confirmed with a video, and killing compton solves it. You can find my compton configuration file here, and I use v0.1_beta2.

bchretien avatar Jan 23 '15 16:01 bchretien

I did a little work on it, will continue tomorrow. I try to use screensaver window instead of composite overlay window.

Currently the problem is, that compton is a composite manager and uses composite overlay window, and i3lock-blur tries to use the same window, which causes a conflict between them.

karulont avatar Feb 09 '15 22:02 karulont

Is there any news on the progress of this bug? I'm running into the same issue now?

Tasqa avatar Apr 30 '15 11:04 Tasqa

I have to admit, that I have been a little lazy. I started working on it, then got into some schoolwork and forgot about it. Unfortunately I am too busy right now to start working on it.

I guess that you also use a composite manager. Currently i3lock-blur will not work correctly when using a composite manager because they try to draw onto the same window and therefore are in conflict.

karulont avatar Apr 30 '15 18:04 karulont

Allright, thanks for the update. Then I'll just use different locking options for now.

Tasqa avatar May 01 '15 14:05 Tasqa

Use a wrapper script that first kills your composer, runs i3lock-blur, then starts your composer. This is probably the easiest solution.

karulont avatar Aug 12 '15 00:08 karulont

I think adding paint-on-overlay = false; to your compton config (~/.config/compton.conf) makes it.

R.

ghost avatar Feb 27 '16 11:02 ghost

I've got another proposal - why do we bother to update pixmaps if we can get a blurred background once and display it? This should fix #10 as well. Is it worth working on? :)

megawebmaster avatar Jan 31 '17 21:01 megawebmaster

The whole idea of i3lock-blur is to update the blurred image when the background changes. If you want to blur only once, then you can use this -- it was the inspiration for writing i3lock-blur.

For me it felt awkward that I see something on the lock screen, open the lock, and something completely different is actually on the screen.

karulont avatar Feb 01 '17 16:02 karulont

Well, the problem with the script is that it works so slow it's unusable. On modern, powerful PC it takes 2 seconds to lock and that's unacceptable.

Unfortunately for now (even with compton turned off) the screen is weirdly flickering with i3lock-blur so I will probably create a fork and figure out how to make it single time blurring. IMO when locked screen does not change that often or you cannot really see what changed after opening it up. Maybe another switch for i3lock would be good?

megawebmaster avatar Feb 02 '17 06:02 megawebmaster

You raised a valid argument against the script. Therefore I thought I would give it a try. Check out blur-once branch and let me know if it works for you.

karulont avatar Feb 03 '17 02:02 karulont

I forgot to add that, when trying out blur-once branch, you should use the options: i3lock -fo.

karulont avatar Feb 03 '17 16:02 karulont

Thanks for taking your time to implement my suggestion! It works perfectly, even with Compton running, now I can easily use it as my lock screen! Thanks again!

megawebmaster avatar Feb 03 '17 16:02 megawebmaster

Has there been any progress on this bug at all? It looks like you removed the --once flag, as it doesn't work on my end. Without it I have horrible flickering with Compton.

TomokoK avatar Nov 12 '17 03:11 TomokoK