swayfx icon indicating copy to clipboard operation
swayfx copied to clipboard

Dim unfocused window just paints the whole window

Open TLINDEN opened this issue 5 months ago • 4 comments

  • Swayfx Version:

    • swayfx version 0.5.2 (based on sway 1.10.1)
  • Configuration File: https://gist.github.com/TLINDEN/6c70e9bac07461ff047ec3c82164dff9

  • Description: I have build swayfx manually and installed it (along with wlroots and scenefx libs) to /opt. I can start it and it works like the original sway if I use my original config. However, I have configured the dimming of unfocused windows, but they are just painted in the given dim color, not dimmed. It doesn't matter, which value I give in default_dim_inactive. It also doesn't matter, which color I use, unless I use black (#000000) then no dimming happens. I also tried to enable the blur and shadows feature. Both don't work either, there are no shadows or blurring anywhere.

edited to add screenshot: the blue left window is just another terminal window, which is unfocused, which normally looks exactly like the right one.

Image

TLINDEN avatar Jun 30 '25 09:06 TLINDEN

I created https://github.com/WillPower3309/swayfx/pull/440 which adds the Dockerfile and docker-compose.yaml which I have used to build swayfx. Of course these are work in progress and possibly unrelated to this issue.

TLINDEN avatar Jun 30 '25 09:06 TLINDEN

I have this issue too. I had default_dim_inactive 1 for testing. I don't know if that's why, but that seems odd. I thought that "dim" settings should have put some black coloured and highly transparent overlay and not use the notification colour (in my case it's red). I have not yet tested if setting default_dim_inactive 0 goes around the issue. I'm waiting for a notification to happen.

sim590 avatar Jul 03 '25 22:07 sim590

Might need some clarification on this one, if default_dim_inactive should set how dimmed a window is, with 1 being fully whatever color your dim color is, and 0.5 for example being set to half the value of the dim color. Default setting with default_dim_inactive set to 0.5 for example gives:

Image

WillPower3309 avatar Jul 12 '25 21:07 WillPower3309

Strange, I didn't really change anything, but it's now working in a way. But the dim setting doesn't seem to make a difference now. So, wether I set it to 0.1 or to 1 the dimming is always the same. It never looks like your screenshot. This is how it looks at 0.5 with dim color `#ff0000':

Image

Oh and what's weird as well is that system popups like the file open dialog look really strange:

Image

This applies to all floating windows! It doesn't happen at the 0.1 dim setting, but the strange thick red frame persists. Most interestingly with dim setting 0 inactive windows are still being dimmed with the dim color as described above (so that setting does really have no effect), but the thick frame around floatings disappears with 0.

TLINDEN avatar Jul 13 '25 09:07 TLINDEN