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

Commit

Permalink
Add printClient debug function
Browse files Browse the repository at this point in the history
  • Loading branch information
faho committed Jan 30, 2015
1 parent ddf540a commit 1db824e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contents/code/util.js
Expand Up @@ -116,6 +116,11 @@ util.printTile = function(tile) {
" client ", tile.clients[0].resourceClass.toString());
}

util.printClient = function(client) {
print("Client ", client.resourceClass.toString(), " on desktop ", client.desktop,
" at ", util.rectToString(client.geometry), " on tile ", client.tiling_tileIndex);
}

util.assertRectInScreen = function(rect, screenRectangle) {
util.assertTrue(rect.x >= screenRectangle.x &&
rect.y >= screenRectangle.y &&
Expand Down

0 comments on commit 1db824e

Please sign in to comment.