Article View: comp.windows.interviews
Article #831IV3.1Beta3 bug in Display::ungrab()
From: Thomas Roell
Date: Wed, 11 Nov 1992 11:16
Date: Wed, 11 Nov 1992 11:16
38 lines
1757 bytes
1757 bytes
Ok I found a little bug in xwindow.c. The problem in the routine is
that from a list possibly more than one element is deleted. Hence
after the deletion of one element the list is one element shorter, but
ListItr only looks at instantiation time at the length of the list.
Due to this there is always a nonexisting element being referenced
(which breaks my application as one might have already guessed ...).
*** xwindow.c-dist Wed Nov 11 11:35:39 1992
--- xwindow.c Wed Nov 11 12:11:07 1992
***************
*** 1975,1983 ****
if (g.handler_ == h) {
i.remove_cur();
Resource::unref(h);
! if (!all) {
! break;
! }
}
}
}
--- 1975,1982 ----
if (g.handler_ == h) {
i.remove_cur();
Resource::unref(h);
! if (all) ungrab(h, all);
! break;
}
}
}
- Thomas
--
-------------------------------------------------------------------------------
Das Reh springt hoch, e-mail: roell@sgcs.com
das Reh springt weit, #include <sys/pizza.h>
was soll es tun, es hat ja Zeit ...
Technical Details
Message-ID:
<1992Nov11.111612.17589@Informatik.TU-Muenchen.DE>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!think.com!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!informatik.tu-muenchen.de!roellShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!think.com!sdd.hp.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!informatik.tu-muenchen.de!roell From: roell@informatik.tu-muenchen.de (Thomas Roell) Subject: IV3.1Beta3 bug in Display::ungrab() Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem) Organization: Inst. fuer Informatik, Technische Univ. Muenchen, Germany Date: Wed, 11 Nov 1992 11:16:12 GMT Message-ID: <1992Nov11.111612.17589@Informatik.TU-Muenchen.DE> Distribution: comp Lines: 38