{"action":"created","issue":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/351","labels_url":"https://api.github.com/repos/awesomeWM/awesome/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/awesomeWM/awesome/issues/351/comments","events_url":"https://api.github.com/repos/awesomeWM/awesome/issues/351/events","html_url":"https://github.com/awesomeWM/awesome/issues/351","id":97222028,"number":351,"title":"confusion about client:geometry()","user":{"login":"guotsuan","id":1430766,"avatar_url":"https://avatars.githubusercontent.com/u/1430766?v=3","gravatar_id":"","url":"https://api.github.com/users/guotsuan","html_url":"https://github.com/guotsuan","followers_url":"https://api.github.com/users/guotsuan/followers","following_url":"https://api.github.com/users/guotsuan/following{/other_user}","gists_url":"https://api.github.com/users/guotsuan/gists{/gist_id}","starred_url":"https://api.github.com/users/guotsuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guotsuan/subscriptions","organizations_url":"https://api.github.com/users/guotsuan/orgs","repos_url":"https://api.github.com/users/guotsuan/repos","events_url":"https://api.github.com/users/guotsuan/events{/privacy}","received_events_url":"https://api.github.com/users/guotsuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-25T12:14:05Z","updated_at":"2015-07-27T22:33:07Z","closed_at":null,"body":"I'm now confused about  the behaviour of the client:geometry(). I'm wondering if it is a bug or it suppose to be like that.\r\n\r\nI am  trying to collect all clients to a temporary tag by awful.client.toggletag (), as shown in the picture.\r\nThen I give each client a hintbox with a letter. By pressing the corresponding letter, I can quickly select the client I want.  It actually works fine with the version of awesome a few month ago.  But recently there is some problem about displaying the hintbox.\r\n\r\nTo properly place the hintbox in the temp tag, I firstly awful.tag.viewonly(the temp tag). As you can see in the picture. \r\nIn this tag, there are all clients \"borrowed\" from other tags, and tiled in this one.  To place the hintbox in the righ place (the centre of client),  I need to get the geometry of all the clients by client:geometry(). \r\n\r\nI will assume that the geometry of each client will be different if there are in different tag, since the layout of the different tag may be different.  So when I awful.tag.viewonly(the temp tag), which is full of the clients borrowed from other clients, I assume the client:geometry() should return the geometry of the client in this temp tag, not the geometry of client in its original tag.\r\n\r\nTo be a little bit clearer:\r\nAssume we have  client (A) in tag 1, client (B) in tag 2. Both tags are in awful.layout.suit.fair.\r\nSo both client are maximised in tag1 and tag2. The width of client A and B should be equal, let us say 1440.  If both client A band B are added (not moved) to tag 3 by awful.client.toggletag(tag 3). Then if I awful.tag.viewonly(tag3) and use client:geometry() to get the width of client A and B, I would expect that the width of A and B should be 720 and 720 respectively,since two of them equally share the tag 3.  But now from my code. I still get the width of 1440 and 1440 in this case. \r\n\r\nI'm wondering if I'm dong something wrong or it is a bug?\r\n\r\n![screenshot](https://cloud.githubusercontent.com/assets/1430766/8889350/c6eaa87e-32d6-11e5-8e90-7384ef470c85.png)\r\n"},"comment":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/comments/125367361","html_url":"https://github.com/awesomeWM/awesome/issues/351#issuecomment-125367361","issue_url":"https://api.github.com/repos/awesomeWM/awesome/issues/351","id":125367361,"user":{"login":"guotsuan","id":1430766,"avatar_url":"https://avatars.githubusercontent.com/u/1430766?v=3","gravatar_id":"","url":"https://api.github.com/users/guotsuan","html_url":"https://github.com/guotsuan","followers_url":"https://api.github.com/users/guotsuan/followers","following_url":"https://api.github.com/users/guotsuan/following{/other_user}","gists_url":"https://api.github.com/users/guotsuan/gists{/gist_id}","starred_url":"https://api.github.com/users/guotsuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guotsuan/subscriptions","organizations_url":"https://api.github.com/users/guotsuan/orgs","repos_url":"https://api.github.com/users/guotsuan/repos","events_url":"https://api.github.com/users/guotsuan/events{/privacy}","received_events_url":"https://api.github.com/users/guotsuan/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T22:33:07Z","updated_at":"2015-07-27T22:33:07Z","body":"Adding the extra timer works. I just found that @wxg4net use awesome.emit_signal(\"refresh\") to force the layout to re-calculate the geometry. I'm wondering if there is no other side effect, this way seems more simple?"}}