aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-24 23:49:35 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-04-24 23:49:35 +0200
commitb8cc3a8525aeb56fb0ef05be97d5b86e2848d8e1 (patch)
tree4892dcde578991ffccbcab0aec72dc70d63d5fd1 /uzbl.c
parent421d78e6d74e4aa976296a959b109c4fc40b01e3 (diff)
set x window id. will be useful to tag the fifo
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/uzbl.c b/uzbl.c
index d27ccdf..f97d7aa 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -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;