summaryrefslogtreecommitdiff
path: root/stuff.go
diff options
context:
space:
mode:
Diffstat (limited to 'stuff.go')
-rw-r--r--stuff.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/stuff.go b/stuff.go
index b4886db..e50ff3d 100644
--- a/stuff.go
+++ b/stuff.go
@@ -84,10 +84,9 @@ func main() {
}
*/
- var test xproto.Drawable
- geomReply, err := xproto.GetGeometry(conn, test).Reply()
+ geomReply, err := xproto.GetGeometry(conn, xproto.Drawable(child)).Reply()
if err != nil {
- // fmt.Printf("err: %+v\n", err)
+ fmt.Printf("err: %+v\n", err)
// fmt.Printf("child geomReply: %+v\n", geomReply)
} else {
fmt.Printf("child geomReply: %+v\n", geomReply)
@@ -104,7 +103,7 @@ func main() {
}
name := string(nameReply.Value)
- if name == "Workspace1-Terminal" {
+ if name == "Terminal" {
target = child
break
}