🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sun.open-windows
Article #1

How to block input for a particular XView application

#1
From: Olivier Bourdon - Sun ICNC
Date: Mon, 17 Aug 1992 11:29
29 lines
2053 bytes
I have an application with a main window and some another windows (not popups but
it does not matter as the main window is the XV_OWNER of the secondary ones).
I have a button in one of the secondary window which is supposed to do a SAVE of some
internal data structure in a file and this operation may take a long time.

I managed to recover the full hierarchy of windows and set each of the frames
I found to a busy state but if I click on any item in my interface while all
frames are in busy=true state then all my events are still buffered and I don't
wnat this.

Second, I tried to modify the WIN_X_EVENT_MASK of the frames I set to busy
but it does not prevent events to occur within let's say panels contained by those frames.
I don't want to store a table of win/frame/panels with their X_EVENT_MASKS and restore
this list after the SAVE is completed.

Is there some XView /XLib functionality that I missed ?

Thanks for any answer/pointer
Olivier

-- 
+---------------------------------+-----------------------------------+
|Olivier BOURDON                  | Address : SUN MICROSYSTEMS        |
|E-Mail : obourdon@France.Sun.COM |           International Center for|
|Tel : +33 76 41 42 19            |           Network Computing       |
|Fax : +33 76 41 42 41            |           32 av du Vieux Chene    |
|                                 |           38 240 Meylan Zirst     |
|member of OSI development team   |                  FRANCE           |
+---------------------------------+-----------------------------------+
Technical Details
Message-ID: <l8v3d0INNrui@exodus.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!France.Sun.COM!obourdon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!France.Sun.COM!obourdon
From: obourdon@France.Sun.COM (Olivier Bourdon - Sun ICNC)
Newsgroups: sun.open-windows,alt.toolkits.xview,comp.windows.open-look,comp.windows.x
Subject: How to block input for a particular XView application
Date: 17 Aug 1992 11:29:36 GMT
Organization: SunConnect
Lines: 29
Distribution: world
Message-ID: <l8v3d0INNrui@exodus.Eng.Sun.COM>
NNTP-Posting-Host: sunalps.france.sun.com