-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
This Patch manages to solve an issue when Compiz-alike-magic-lamp-effect minimizing/maximizing animation deems to be inaccurate (for example, symptoms may be inaccurate icon centering)
therefore i managed to solve this by fetching the icon scale information from animator.js, and making a logic where it adjusts the animation offset depending if it's minimized or maximized.
if you still experience miscentering issues, you might need to adjust "sz"
(if you're asking why 1.000005 instead of just 1, is that because sometimes scale "is" might return something like this 1.000000000049, while visually your mouse doesnt hover above the icon, but the logs return like i provided, so when 1 would be in the place of 1.000005, you'd most likely get icon centering inaccuracy, because 1 is smaller than 1.000000000049)
if (1.000005 >= is) {
let scale = dock.getMonitor().geometry_scale || 1;
ofs = (sz / 2) * scale;
} else if (1 < is) {
let scale = dock.getMonitor().geometry_scale || 1;
ofs = sz * scale;
}
download this: integrations.js
to apply this you usually have to go in "~/.local/share/gnome-shell/extensions/dash2dock-lite@icedman.github.com" and paste the integrations.js that you downloaded into this folder and overwrite the original integrations.js with mine.
log out and log back in to apply this patch.
// EDIT: if you see some spam in the journal, go to line 65 in integrations.js and place "//" before "log('scale', is);" or just completely remove that line, it was for debugging