From: Moray Allan <moray@debian.org>
Date: Wed, 11 Feb 2026 14:51:59 +0000
Subject: Avoid ugliness in display name

Avoids e.g. saying ":0.0:0" for display if run with "-d :0.0".
---
 xrestop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xrestop.c b/xrestop.c
index c3e9de3..9bc5221 100644
--- a/xrestop.c
+++ b/xrestop.c
@@ -523,8 +523,8 @@ xrestop_display(XResTopApp *app)
 
       clear();
 
-      mvprintw(0, 0, "xrestop - Display: %s:%i", 
-	       app->dpy_name ? app->dpy_name : "localhost", app->screen);
+      mvprintw(0, 0, "xrestop - Display: %s",
+	       app->dpy_name ? app->dpy_name : "localhost");
 
       mvprintw(1, 0, "          Monitoring %i clients. XErrors: %i", app->n_clients, app->n_xerrors);
       mvprintw(2, 0, "          Pixmaps: %8s total, Other: %8s total, All: %8s total", 
