x11: Use window macros instead of drawable macros

GDK_WINDOW_XID() instead of GDK_DRAWABLE_XID()
GDK_WINDOW_XDISPLAY() instead of GDK_DRAWABLE_XDISPLAY()
This commit is contained in:
Benjamin Otte
2010-10-06 01:22:45 +02:00
parent 91679c384a
commit 3b8aea389d
6 changed files with 70 additions and 70 deletions

View File

@ -121,7 +121,7 @@ gdk_test_simulate_key (GdkWindow *window,
y = y + priv->abs_y;
xev.type = key_pressrelease == GDK_KEY_PRESS ? KeyPress : KeyRelease;
xev.display = GDK_DRAWABLE_XDISPLAY (window);
xev.display = GDK_WINDOW_XDISPLAY (window);
xev.window = GDK_WINDOW_XID (window);
xev.root = RootWindow (xev.display, GDK_SCREEN_XNUMBER (screen));
xev.subwindow = 0;
@ -228,7 +228,7 @@ gdk_test_simulate_button (GdkWindow *window,
y = y + priv->abs_y;
xev.type = button_pressrelease == GDK_BUTTON_PRESS ? ButtonPress : ButtonRelease;
xev.display = GDK_DRAWABLE_XDISPLAY (window);
xev.display = GDK_WINDOW_XDISPLAY (window);
xev.window = GDK_WINDOW_XID (window);
xev.root = RootWindow (xev.display, GDK_SCREEN_XNUMBER (screen));
xev.subwindow = 0;