Re: gdk_window_set_decorations doesn't work



Around about 02/04/02 18:51, Christian Biesinger typed ...
On Tue, Apr 02, 2002 at 12:35:37PM -0500, Paul Davis wrote:
AFAIK, gdk_window_set_decorations() is intended to be used before the
window is shown, and does not do anything after the window has been
mapped (shown). i could be wrong about that.
oh great.
Can't I somehow hide a window in such a way that when it is shown again
the window manager believes it's a new one, so that it looks at the hints
again?

This isn't GTK functionality (i.e., there's no GTK 'fix'), but more the way that most X11 Window Managers interpret hints. You may find that some WMs will allow you to change hints when the window's not mapped (ISTRT FVWM2 does), or maybe even while it *is* mapped, but you can't rely upon it.

The only solution I can think of is that you put all of the GTK widgets you /were/ putting into your window into a zero-bordered box container, and put that /box/ into the window. Then when you wish to change decor hints, crea5te a new window the correct size & hints, then use the reparent call to move the box from the old window (which will automatically delete that window, IIRC) to the new.

  Bit hacky, but should be guranteed to work.

--
[neil fnx ~]# rm -f .signature
[neil fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil fnx ~]# exit




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