discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GWorkspace as windowmanager?


From: Kazunobu Kuriyama
Subject: Re: GWorkspace as windowmanager?
Date: Sun, 13 Jun 2004 16:16:21 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1

Enrico Sersale wrote:

It seems that there are some restrictions in setting the event-mask in XSelectInput(); I never used XLib and I didn't know this.

Probably, this was due to ownership violation---your application tried
to change some attributes of a window belonging to another application
without having any permission or privilege for it. (Note that
XSelectInput() itself never issues a BadAccess error).

I can't get mouse and key events beacause the window manager has already selected them.

Is there any way to go around this?

If you like, one possible option is to use XGrabKey(), XGrabPointer()
(or other XGrab*() functions if necessary) to intercept mouse or key
events that have been dispatched from the X server to any other
applications, including WM, so that such events are at the disposal of
your application.

These functions are so powerful that they can destroy the world order
established by the window manager or even freeze the X server, thus
making the current session completely unusable. So think the use of
them as a last resort.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]