diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-04-24 23:49:35 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-04-24 23:49:35 +0200 |
commit | b8cc3a8525aeb56fb0ef05be97d5b86e2848d8e1 (patch) | |
tree | 4892dcde578991ffccbcab0aec72dc70d63d5fd1 /uzbl.c | |
parent | 421d78e6d74e4aa976296a959b109c4fc40b01e3 (diff) |
set x window id. will be useful to tag the fifo
Diffstat (limited to 'uzbl.c')
-rw-r--r-- | uzbl.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -29,6 +29,7 @@ */ #include <gtk/gtk.h> +#include <gdk/gdkx.h> #include <webkit/webkit.h> static GtkWidget* main_window; @@ -40,7 +41,7 @@ static gchar* history_file; static gint load_progress; static guint status_context_id; - +Window xwin = NULL; gchar* uri = NULL; static gboolean verbose = FALSE; @@ -228,6 +229,9 @@ int main (int argc, char* argv[]) gtk_widget_grab_focus (GTK_WIDGET (web_view)); gtk_widget_show_all (main_window); + xwin = GDK_WINDOW_XID (GTK_WIDGET (main_window)->window); + printf("My X window id is %i\n",(int) xwin); + gtk_main (); return 0; |