Just some small changes, that i think are worth adding:
Fix disabling BlurBehind on X11
Seems my assumption that the value of _KDE_NET_WM_BLUR_BEHIND_REGION is a boolean, was false. It's either some magic value, some other weird usage or it's just plainly ignored. I changed it to remove the property, when disabling the blur behind effect is requested. This seems to properly work as I tested running the method XLib.setBlurBehind from my mod during runtime now (where it wouldn't do anything before):
BlurBehind On (unchanged):
BlurBehind Off:
Small mixin tweak
I also changed one mixin to use @WrapOperation instead of @Redirect. Mixin-Extras is nowadays builtin to fabric and it seems recommended to prefer using that operation as it can be chained. See Wiki
The other mixins that do redirect, don't need to be updated as @WrapOperation is not useful if the original method is never intended to be called anyway.
Again worth mentioning: This mod is awesome! It really makes Minecraft feel modern in a very unique way!
Hi again :D
Just some small changes, that i think are worth adding:
Fix disabling BlurBehind on X11
Seems my assumption that the value of
_KDE_NET_WM_BLUR_BEHIND_REGION
is a boolean, was false. It's either some magic value, some other weird usage or it's just plainly ignored. I changed it to remove the property, when disabling the blur behind effect is requested. This seems to properly work as I tested running the methodXLib.setBlurBehind
from my mod during runtime now (where it wouldn't do anything before):BlurBehind On (unchanged):
BlurBehind Off:
Small mixin tweak
I also changed one mixin to use @WrapOperation instead of @Redirect. Mixin-Extras is nowadays builtin to fabric and it seems recommended to prefer using that operation as it can be chained. See Wiki
The other mixins that do redirect, don't need to be updated as @WrapOperation is not useful if the original method is never intended to be called anyway.
Again worth mentioning: This mod is awesome! It really makes Minecraft feel modern in a very unique way!