Always on Top

Olivier Fourdan fourdan at xfce.org
Sun Nov 19 17:00:03 CET 2006


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


James,

Odenthal, James P wrote:
>>>> However in XFCE 4.2.2, wmxf4;  The visibility event is working; but the
>>>> gtk_window_present() seems to have no effect. The window that I need
>>>> always on top remains under the other dialog.
>
> Note that I can't get the visibility-notify to work (that's why I'd like
> to get your sample code), but gtk_window_present() does properly raise
> and focus the window in both xfwm4 4.2 and 4.4 here (see attached sample
> code that raise the window on enter event, ie, move the pointer inside
> the window and it gets raised).
> =================================================
>
> Many many thanks.  We are not alone.
>
> I use Glade to build from a rather large project we just sent offshore to get "linux'd".  Hard for me to quickly make a small test program.  But I will; and I wanted to say thanks for the lifeline. The offshore group provided us with a developement box running FC4/Gnome/Metacity. Our Target OS is a LinuxFromScratch built in-house by our linux guru, who just left.

It's ok, no problem, you can safely forget about the test program.

> To get visibility to work,....I selected an event mask; and Glade adds:
>
>     gtk_widget_set_events(widget,GDK_VISIBILTY_NOTIFY_MASK). Perhaps the ENTRY_MASK is set by default?

Oh, right. BTW, the problem is not with visibility-notify but rather
with gtk_window_present() not raising the window.

Does the attached program works for you? It does work properly here. But
I'm not using gtk+-2.6 bit gtk+-2.10 so there might some difference.

If not, does calling gdk_window_raise(widget->window) work?

HTH,
Cheers,
Olivier.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFYH+CFHBtvh5LRUARAiaIAJsF+DMJeMyf/ST4HxaaFDS2o2zdhQCg2emw
z6/PMyMb1qjyb6m8ItehcMw=
=zjNS
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unobscure-present.c
Type: text/x-csrc
Size: 1203 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20061119/e43e83e8/attachment.c>


More information about the Xfce mailing list