ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] window name on title change


From: Neale Pickett
Subject: [RP] window name on title change
Date: Wed Jul 31 12:36:17 2002
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

You know what would be really neat, would be if, when a window changed
its title (or icon name, or whatever), ratpoison automagically popped up
a little window like you get when you do ":info".  That way, when screen
wanted to tell me something, I would actually see it.  

Since screen runs in xterm, my debian box puts screen messages in the
xterm title.  Ratpoison doesn't give you the title unless you ask for
it, which means that I am missing out on all manner of valuable screen
messages.  Yes, I know I can fix this in my .screenrc, but that's not
what I want.

So now that I've got you all thinking "wow, what a great idea!" I
present you with a patch.  It doesn't set up a configuration variable or
anything, because doing that looked like it would take longer than five
minutes.  (Sorry, I'm a wuss.)

--- ratpoison-1.2.0.cvs.20020425/src/manage.c   Sun Feb 17 13:24:28 2002
+++ ratpoison-mod/src/manage.c  Wed Jul 31 12:12:56 2002
@@ -223,6 +223,8 @@
       win->res_name = newstr;
     }
 
+  marked_message_printf (0, 0, "%s", window_name (win));
+
   return 1;
 }


Enjoy

Neale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]