Re: Contacting the window manager by gtk apps




Joachim Backes <backes@rhrk.uni-kl.de> writes:

> Hi,
> 
> is it possible to influence the window managers (mwm for example) by a running
> GTK+ application, so that the menus in the WM frames can be shortened or removed (similar to
> Motif application resources like XmNmwmDecorations or XmNmwmFunctions).
> 
> Any help appreciated.

The MWM hints are supported by the following functions:

void	      gdk_window_set_decorations (GdkWindow	  *window,
					  GdkWMDecoration  decorations);
void	      gdk_window_set_functions	 (GdkWindow	  *window,
					  GdkWMFunction	   functions);

There is an example of using set_decorations() in gtk/testgtk.c

Regards,
                                        Owen



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