summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-09-14 18:22:27 -0500
committerJeremy Huddleston <jeremyhu@apple.com>2011-09-14 18:36:39 -0500
commitdf9f1cb174cb1a4eb8aea7188c3226b260228a2b (patch)
tree02cf56c77113f572efa007f3bc3c7a3a9fc875cc
parenteed0d801334b9ce017c196c4af420675caf671ae (diff)
Change the window title to be the Screen index
$DISPLAY was not particularly useful and resulted in a crash for long values of $DISPLAY. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r--src/xlibclient.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xlibclient.c b/src/xlibclient.c
index 4c494d4..edb4ad5 100644
--- a/src/xlibclient.c
+++ b/src/xlibclient.c
@@ -123,8 +123,7 @@ NestedClientCreateScreen(int scrnIndex,
sizeHints.max_height = height;
XSetWMNormalHints(pPriv->display, pPriv->window, &sizeHints);
- sprintf(windowTitle, "Display #%s",
- DisplayString(pPriv->display));
+ sprintf(windowTitle, "Screen %d", scrnIndex);
XStoreName(pPriv->display, pPriv->window, windowTitle);