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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user