gtk_window_parent issues



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm having some real trouble with gtk_window_parent when running other
some other window managers like kwin or blackbox or icewm

The first call to gtk_window_reparent works, then I remove the parent so
I can fullscreen the window and then after I unfullscreen, I try and
reparent and this option fails

So the code to go fullscreen looks like this

if (GTK_WIDGET_MAPPED(window))
    gtk_widget_unmap(window);
gdk_window_reparent(window->window, NULL, 0, 0);
gtk_widget_map(window);
gtk_window_fullscreen(GTK_WINDOW(window));

and the code to go back is like this

gtk_window_unfullscreen(GTK_WINDOW(window));
while (gtk_events_pending())
       gtk_main_iteration();

if (GTK_WIDGET_MAPPED(window))
    gtk_widget_unmap(window);
gdk_window_reparent(window->window, window_container, 0, 0);
gtk_widget_set_parent_window(window,window_container);
                        gtk_widget_map(window);

This works perfectly under metacity, fvwm, and xfwm4... but the others I
either get the window in the wrong spot or it turns invisible (it acts
like it is under the parent window background (the allocate event fires
and I get the correct size of the parent window), but can't see it and
can't get it to raise.

Any ideas as to what I can do, I'm stuck. I've tried using
XReparentWindow, XGrabServer, XMapResize and various other things.

I have a bug report you can read also (this is for gnome-mplayer, when
running under gecko-mediaplayer control)

http://code.google.com/p/gecko-mediaplayer/issues/detail?id=14


Kevin
- -- 
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkoMib4ACgkQ6w2kMH0L1dFhoACeMxKfj2ua+jvM7WZfMLHQBixx
kdYAn0KuXsCWFFraAgKYD5zJnNP5KtO8
=rypZ
-----END PGP SIGNATURE-----



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