File: 30-avoid-display-name-ugliness

package info (click to toggle)
xrestop 0.4%2Bgit20130926-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 200 kB
  • sloc: ansic: 559; makefile: 18; sh: 7
file content (16 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Avoid ugliness in display name
 Avoids e.g. saying ":0.0:0" for display if run with "-d :0.0".
Author: Moray Allan <moray@debian.org>
--- a/xrestop.c
+++ b/xrestop.c
@@ -528,8 +528,8 @@
 
       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",