🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23912

Help Needed: Selecting ButtonPress on Root

#23912
From: Paul Ninnis
Date: Fri, 21 Jun 1991 00:48
29 lines
1717 bytes
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            |
+-------------------------------------------+--------------------------------+
Technical Details
Message-ID: <1991Jun21.004859.15221@TIRS.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!augean.ua.OZ.AU!bubbles!pauln

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!augean.ua.OZ.AU!bubbles!pauln
From: pauln@TIRS.oz.au (Paul Ninnis)
Newsgroups: comp.windows.x
Subject: Help Needed: Selecting ButtonPress on Root
Message-ID: <1991Jun21.004859.15221@TIRS.oz.au>
Date: 21 Jun 91 00:48:59 GMT
Organization: International Railroad Systems (Electronics)
Lines: 29