taj-ny / kwin-effects-forceblur

Blur any window on KDE Plasma 6
GNU General Public License v3.0
107 stars 7 forks source link

Blur region for GTK context menus is too large #17

Open taj-ny opened 3 months ago

taj-ny commented 3 months ago

image

D3SOX commented 3 months ago

Seems to depend on some settings as it does not happen to me

image

Are you running Firefox with Wayland or XWayland?

taj-ny commented 3 months ago

Wayland. I use a transparent Firefox theme so I have it blurred.

D3SOX commented 3 months ago

Yeah, I was posting this too fast. Maybe I need to restart Firefox for it to happen (don't want to do that right now)

But I could reproduce it Chromium now

image

taj-ny commented 3 months ago

It may be possible to get the sizes of the borders from _GTK_FRAME_EXTENTS and then shrink the blur region, but that'll only work on X11. On Wayland there's nothing I can do aside from adding the ability to shrink the region manually.

Edit: _GTK_FRAME_EXTENTS is not set for context menus.

Edit 2: The ability to disable force blur for menus has been added in v1.1.2.