Skip to content
Snippets Groups Projects
Commit 426e4e91 authored by Fabian Homborg's avatar Fabian Homborg
Browse files

Add floating toggle to user actions menu.

parent 7126ad74
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,21 @@ function TilingManager() {
var currentDesktop = workspace.currentDesktop - 1;
self.layouts[currentDesktop][currentScreen].toggleActive();
});
registerUserActionsMenu(function(client) {
return {
text : "Toggle floating",
triggered: function () {
client.tiling_floating = ! client.tiling_floating;
if (client.tiling_floating == true) {
self.tiles._onClientRemoved(client);
} else {
self.tiles.addClient(client);
client.keepBelow = true;
}
self.tiles.retile();
}
};
});
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment