[comp.windows.x] Help Needed: Selecting ButtonPress on Root

pauln@TIRS.oz.au (Paul Ninnis) (06/21/91)

I'm having a problem using the following:

  XSelectInput(display,root,ButtonPressMask);

The root has been found correctly, but because of a conflict with
the window manager, I get the following error

  X Error:  BadAccess
    Request Major code 2 ()
    Request Minor code 0
    ResourceID 0x8006c
    Error Serial #118
    Current Serial #118

This occurs using the following window managers olwm,olvwm,twm
but not tvtwm where it works as I want.
I there a 'proper' way to over-ride the window manager's control of the root
window periodically, so that I can receive the ButtonPress Event?
(This is under X11R4 with server Xnews)

Email Responses Appreciated
+-------------------------------------------+--------------------------------+
|  ___  __   _  _   _     _    _            | PAUL NINNIS : Software Engineer|
| (  ,)( ,\ ( )( ) / )   ( )  / )           | International Railroad Systems |
|  ) _) )  \ \()/ / (_    ) \/ / @TIRS.oz.au| 209 Wakefield St,Adelaide SA   |
| (_)  (_)\_)(__)(____)  (_/\_/             | PHONE: +61 8 232 1740          |
| The Hidden Flaw NEVER Remains Hidden      | FAX: +61 8 232 2274            |
+-------------------------------------------+--------------------------------+