Article View: comp.windows.interviews
Article #197mapping the window
From: Joerg Ringel
Date: Sun, 09 Aug 1992 15:02
Date: Sun, 09 Aug 1992 15:02
40 lines
1407 bytes
1407 bytes
I've the following problem:
I want to be sure that my window is mapped onto the screen.
So I've written these lines:
Event e;
window->map();
window->display()->sync();
while (!window->is_mapped()) {
e.read();
e.handle();
}
But unfortunately this works not correct.
If I write:
while (e.pending())
instead of while (!window->is_mapped())
I will receive signal SEGV (no mapping at the fault address) in pending__7ivEventCFv at 0xf758376c
pending__7ivEventCFv+0x38: ld [%o2 + 12], %o3
If I write:
while (!window->is_mapped() || e.pending())
instead of the old while-code
the error will occur only sometimes.
What can I do, what's my mistake ?
Thanks for your help,
joerg ringel
ringel@forwiss.uni-passau.de
Technical Details
Message-ID:
<1992Aug9.150227.16775@tom.rz.uni-passau.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!ames!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringelShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!kithrup!stanford.edu!ames!sun-barr!cs.utexas.edu!sdd.hp.com!nigel.msen.com!math.fu-berlin.de!informatik.tu-muenchen.de!rz.uni-passau.de!forwiss.uni-passau.de!ringel From: ringel@forwiss.uni-passau.de (Joerg Ringel) Subject: mapping the window Message-ID: <1992Aug9.150227.16775@tom.rz.uni-passau.de> Sender: news@tom.rz.uni-passau.de (News-Operator) Nntp-Posting-Host: eldron.forwiss.uni-passau.de Organization: University of Passau, Germany Date: Sun, 9 Aug 1992 15:02:27 GMT Lines: 41