Just another quick note, because I am using the flipped layout, whenever I minimize windows, the window animations go up towards where the window list should be. I added this code to /usr/share/cinnamon/js/ui/main.js at line 243
Code: Select all
if (Main.desktop_layout == Main.LAYOUT_FLIPPED) {
monitor = Main.layoutManager.bottomMonitor;
yDest = monitor.height;
xDest = monitor.x + monitor.width/2;
}
Here is what the code block looks like now, my changes are at the bottom. This starts at around line 227.
Code: Select all
if (effect == "traditional") {
actor.set_scale(1.0, 1.0);
actor.move_anchor_point_from_gravity(Clutter.Gravity.CENTER);
this._minimizing.push(actor);
let monitor;
let yDest;
if (Main.desktop_layout == Main.LAYOUT_TRADITIONAL || Main.desktop_layout == Main.LAYOUT_CLASSIC) {
monitor = Main.layoutManager.bottomMonitor;
yDest = monitor.height;
}
else {
monitor = Main.layoutManager.primaryMonitor;
yDest = 0;
}
let xDest = monitor.x + monitor.width/4;
if (Main.desktop_layout == Main.LAYOUT_FLIPPED) {
monitor = Main.layoutManager.bottomMonitor;
yDest = monitor.height;
xDest = monitor.x + monitor.width/2;
}
This sets the animation to be in the middle of the bottom monitor so windows minimize to where my dock is. I left the other code untouched and I am just overwriting the variables for this hack. This is in _minimizeWindow : function(cinnamonwm, actor).
I don't use an animation for maximizing windows so I didn't not alter that function, I use the traditional setting for minimizing.