@@ -806,7 +806,7 @@ SPECIAL_AUTO_TILER_3`;
806806 windowCursor = Qt .point (client .x + client .width / 2 , client .y );
807807 }
808808 if ((config .restoreSize || autoTiler .configAutoTileRestoreSize && client .mt_auto ) && client .mt_originalSize ) {
809- client .frameGeometry = Qt .rect (getCursorPosition ().x - client . mt_originalSize . xOffset , client .frameGeometry .y , client .mt_originalSize .width , client .mt_originalSize .height );
809+ client .frameGeometry = Qt .rect (getCursorPosition ().x , client .frameGeometry .y , client .mt_originalSize .width , client .mt_originalSize .height );
810810 delete client .mt_originalSize ;
811811 }
812812 positionAtMoveStart = {x: client .x , y: client .y };
@@ -891,8 +891,7 @@ SPECIAL_AUTO_TILER_3`;
891891 } else {
892892 var geometry = currentTiler .getGeometry ();
893893 if (geometry != null ) {
894- let xOffset = (getCursorPosition ().x - client .x ) / client .width ;
895- client .mt_originalSize = {xOffset: xOffset, x: client .x , y: client .y , width: client .width , height: client .height };
894+ client .mt_originalSize = {x: client .x , y: client .y , width: client .width , height: client .height };
896895
897896 switch (geometry .special ) {
898897 case ' SPECIAL_FILL' :
@@ -1035,6 +1034,9 @@ SPECIAL_AUTO_TILER_3`;
10351034 addMargins (geometryFirst, false , true , false , false );
10361035 addMargins (geometrySecond, true , false , false , false );
10371036 }
1037+ if (! window .mt_originalSize ) {
1038+ window .mt_originalSize = {x: window .x , y: window .y , width: window .width , height: window .height };
1039+ }
10381040 moveAndResizeWindow (window , leftOrTop ? geometrySecond : geometryFirst);
10391041 }
10401042
0 commit comments