summaryrefslogtreecommitdiffstats
path: root/src/x11_in_gtk2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_in_gtk2.c')
-rw-r--r--src/x11_in_gtk2.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c
index 22f39fc..0fae7a5 100644
--- a/src/x11_in_gtk2.c
+++ b/src/x11_in_gtk2.c
@@ -17,10 +17,8 @@
#include <string.h>
#include <gtk/gtk.h>
-//#include <gdk/gdkx.h>
-//#include <X11/Xlib.h>
-#include "suil_internal.h"
+#include "./suil_internal.h"
#define SUIL_TYPE_X11_WRAPPER (suil_x11_wrapper_get_type())
#define SUIL_X11_WRAPPER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SUIL_TYPE_X11_WRAPPER, SuilX11Wrapper))
@@ -69,15 +67,6 @@ suil_x11_wrapper_realize(GtkWidget* w, gpointer data)
SuilX11Wrapper* const wrap = SUIL_X11_WRAPPER(w);
GtkSocket* const socket = GTK_SOCKET(w);
- /*
- GdkWindow* wrap_win = GTK_WIDGET(wrap)->window;
- Display* display = GDK_WINDOW_XDISPLAY(wrap_win);
- Window win = wrap->id;
- XWindowAttributes attr;
- XGetWindowAttributes(display, win, &attr);
- printf("WIDTH: %d HEIGHT: %d\n", attr.width, attr.height);
- */
-
gtk_socket_add_id(socket, gtk_plug_get_id(wrap->plug));
gtk_widget_show_all(GTK_WIDGET(wrap->plug));
}