[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] No longer attemting to release -1.
From: |
Bernhard R. Link |
Subject: |
[RP] No longer attemting to release -1. |
Date: |
Sun, 5 Dec 2004 14:51:34 +0100 |
User-agent: |
Mutt/1.3.28i |
The following patch reduces the size of the .xsession-errors by avoiding
all those
"ratpoison:number.c:110: error: ns=<ptr> Attempt to release -1!"
lines. I do not know if it is the proper fix, but there is also
no point in emitting warnings every time a window is closed.
Index: src/manage.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/manage.c,v
retrieving revision 1.88
diff -u -r1.88 manage.c
--- src/manage.c 4 Dec 2004 03:33:24 -0000 1.88
+++ src/manage.c 5 Dec 2004 13:40:32 -0000
@@ -403,6 +403,7 @@
void
unmanage (rp_window *w)
{
+ if( w->number != -1 ) /* this is -1 if withdraw was called before */
numset_release (rp_window_numset, w->number);
list_del (&w->node);
Hochachtungsvoll,
Bernhard R. Link
- [RP] No longer attemting to release -1.,
Bernhard R. Link <=