Re: Background/Canvas colour



"Petro Verheuvel" <pverheuvel roax nl> writes: 
1) I want to know i can change the colour of the X-server background
(canvas?).

Look at the "xsetroot" application.

2) Is it possible to have keyboard-events when no GTK-Windows are
shown?

Two ways:

 - to get all keyboard events, create a GtkInvisible and
   gdk_keyboard_grab() on the GtkInvisible, or just use a GtkWindow
   type GTK_WINDOW_POPUP that's offscreen (position it somewhere
   offscreen)

 - to get specific keyboard events you need to use Xlib and use 
   XGrabKey(), there are examples in the GNOME panel source code.

Havoc



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