Skip to content

Commit

Permalink
Merge pull request #25 from Self-Perfection/fix_unmaximize
Browse files Browse the repository at this point in the history
Set window unmaximized before moving
  • Loading branch information
lucmos authored Aug 2, 2021
2 parents 659564c + 2270b23 commit 6a46a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contents/code/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ function reposition(client, newX, newY, w, h) {
function move(workspace, numberXslots, numberYslots, x, y, xSlotToFill, ySlotToFill) {
var client = workspace.activeClient;
if (client.moveable) {
client.setMaximize(false,false);
arr = newSlotPosition(workspace, client, numberXslots, numberYslots, x, y, xSlotToFill, ySlotToFill);
var newX = arr[0],
newY = arr[1],
w = arr[2],
h = arr[3];
reposition(client, newX, newY, w, h)
}
client.setMaximize(false,false)
}

function center(workspace) {
Expand Down

0 comments on commit 6a46a49

Please sign in to comment.