Re: Handling events for the root window



On Fri, Mar 07, 2003 at 05:04:01PM -0500, Ramkumar Chinchani wrote:

I am writing a window manager using gtk+ 2.0.

I am packaging the GDK_ROOT_WINDOW as a GdkRoot widget and setting the 
widget window as GDK_ROOT_WINDOW. However, I am unable to receive any
events although I have set the event mask explicitly using
gtk_widget_set_events().

I am using the example given in the tutorial for creating custom
made widgets. So, since the entire object-class code compiles, I am
guessing, it is working ok.

Any suggestions or pointers.


You might want to copy how existing GTK-using WMs work, such as
metacity. I think there may be others, I'm not sure.

Havoc



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