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

Re: How to create a borderless TOP_LEVEL_WINDOW




On Wed, 27 Oct 1999, Michael wrote:
> 
> In fact, I want to write an application like the the Mac Finder. I am
> planning it to support a finder menu,
> and an application menu that shows the GNome Panel Menu.
>
> Therefore I would like it to be borderless.
>

OK, a good source of examples is probably the GNOME panel then. You'll
need to use similar window manager hints; this involves some GNOME
extensions. If you don't use the extensions then it will never work
properly, without some other window manager cooperation.
 
> I am new to GTK, but I am a quite good C programmer. I would like to know
> more about the method of
> override-redirect/saveunder, or how to use a GTK_WINDOW_POPUP.
> 

Override-redirect says "do not let the window manager fool with this
window," normally the window manager "redirects" X events and can
intercept window mappings in order to put the decorations on them.

Saveunder saves the graphics underneath the window, so when the window
disappears the windows under it don't get expose events. It's an
optimization for short-lived windows.

Both of these are set for a GTK_WINDOW_POPUP, which is normally used for
popup windows. I don't think you want this for a finder type of thing; the
panel probably sets the turn-off-decorations hint as you were. You also
need special extension hints to keep the window manager from maximizing
apps over your finder bar, etc. though.

Finder bar sounds like a cool idea, could be a pluggable alternative to
the panel for GNOME users. If you get it working be sure to let us know!

Havoc




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