View Single Post
Old 05-24-2012, 07:00 AM   #35
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
I compiled a simple application testPlayer with gtk. After runnig, i cheked it by a command xwininfo -tree -root. It seems, that it is behind all widows. How to show this application above them?

*.c source code:
#include <gtk/gtk.h>
main(int argc, char *argv[])
{
GtkWidget *window;

gtk_init(&argc, &argv);

window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "Center");
gtk_window_set_default_size(GTK_WINDOW(window), 230, 150);
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_widget_show(window);

g_signal_connect_swapped(G_OBJECT(window), "destroy",
G_CALLBACK(gtk_main_quit), NULL);

g_print (" main 0 \n");
gtk_main();
g_print (" main 1 \n");

return 0;
}


logs: xwininfo: Window id: 0x51 (the root window) (has no name)

Root window id: 0x51 (the root window) (has no name)
Parent window id: 0x0 (none)
20 children:
0x1400001 "testPlayer": ("testPlayer" "TestPlayer") 10x10+10+10 +10+10 MapState=IsUnMapped
1 child:
0x1400002 (has no name): () 1x1+-1+-1 +9+9 MapState=IsUnviewable
0x600013 "L:SS_N:screenSaver_FH:F_ID:blanket-adscreensaver_FS:F_O:U": () 600x800+0+0 +0+0 MapState=IsUnMapped
0xc00033 "L:C_N:searchBar_SBTH:70_SBPH:70_ID:system": ("pillowd" "Pillowd") 600x70+0+30 +0+30 MapState=IsViewable

Last edited by Ehhh; 05-24-2012 at 03:57 PM.
Ehhh is offline   Reply With Quote