Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
does fvwm honor GDK_WINDOW_TYPE_HINT_DIALOG?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Dec 27, 2013 6:05 pm    Post subject: does fvwm honor GDK_WINDOW_TYPE_HINT_DIALOG? Reply with quote

Hello, I'm trying to set up a very simple dialog as

Code:
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
    GtkWidget *dialog, *content, *box, *image, *barra;
   
    gtk_init(&argc, &argv);
   
    dialog = gtk_dialog_new();
    gtk_window_set_default_size(GTK_WINDOW(dialog), 200, 180);
    gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER);
    gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE);
    gtk_window_set_type_hint ( GTK_WINDOW(dialog),
                        GDK_WINDOW_TYPE_HINT_DIALOG);
   
    g_signal_connect(G_OBJECT(dialog), "delete-event", G_CALLBACK(gtk_main_quit), NULL);
   
    gtk_widget_show(dialog);

    gtk_main();

    return 0;
}


But the window is not transient and it appears in my window list and taskbar, the only way I get to have it not appearing is by setting explicity those hints. Also, how do I get fvwm not do decorate a window? Trying the above example with
Code:

gtk_window_set_decorated(GTK_WINDOW(dialog), FALSE);

does not work :(
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Dec 27, 2013 6:22 pm    Post subject: Reply with quote

Ugh, I can't be sure without grepping the sources, but I don't think it does.

In fvwm you have to explicitly disable the decorations on your configuration, even for splash screens (like in libreoffice, gimp, etc.).
Back to top
View user's profile Send private message
potuz
Guru
Guru


Joined: 30 Jan 2010
Posts: 378

PostPosted: Fri Dec 27, 2013 7:18 pm    Post subject: Reply with quote

i92guboj wrote:
Ugh, I can't be sure without grepping the sources, but I don't think it does.

In fvwm you have to explicitly disable the decorations on your configuration, even for splash screens (like in libreoffice, gimp, etc.).
Oops, I forgot I had posted here too, as soon as I posted in the FVWM forums I did grep the sources and found GDK_WINDOW_TYPE_HINT_NOTIFICATION which does exactly what I need. Removed the post there, but didn't here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum