Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Fix swap-window-with-master on multiscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
laloch authored and faho committed Apr 5, 2019
1 parent d61f73f commit 4a99393
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contents/code/tilingmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,16 @@ function TilingManager(timer) {
"Meta+Shift+M",
function() {
try {
var layout = self.layouts[workspace.currentDesktop - 1][workspace.activeScreen];
if (layout != null) {
var client = workspace.activeClient;
if (client != null) {
var tile = layout.getTile(client.x, client.y);
var client = workspace.activeClient;
if (client != null) {
var tile = self.tiles.getTile(client);
if (tile != null) {
var layout = self.layouts[tile.getDesktop() - 1][tile.getScreen()];
if (layout != null) {
layout.swapTiles(tile, layout.tiles[0]);
}
}
}
if (tile != null) {
layout.swapTiles(tile, layout.tiles[0]);
}
} catch(err) {
print(err, "in swap-window-with-master");
}
Expand Down

0 comments on commit 4a99393

Please sign in to comment.