Skip to content

Commit

Permalink
improve dragging supposedly but not really i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroxoneafour committed Apr 3, 2024
1 parent 7b79806 commit 816749c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller/actions/windowhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class WindowHooks {
// client is in a non-managed tile (move it to a managed one)
else if (!this.ctrl.managedTiles.has(tile)) {
this.logger.debug("Window", this.window.resourceClass, "moved into an unmanaged tile");
const center = new GRect(this.window.frameGeometry).center;
const center = new GRect(tile.absoluteGeometryInScreen).center;
let newTile = this.ctrl.workspace
.tilingForScreen(this.window.output)
.bestTileForPosition(center.x, center.y);
Expand All @@ -114,7 +114,7 @@ export class WindowHooks {
this.ctrl.driverManager.putWindowInTile(
this.window,
newTile,
new GRect(newTile.absoluteGeometry).directionFromPoint(center),
new GRect(newTile.absoluteGeometryInScreen).directionFromPoint(center),
);
this.ctrl.driverManager.rebuildLayout(this.window.output);
}
Expand Down

0 comments on commit 816749c

Please sign in to comment.