Commit a0cd7079 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Set the display.

Tue Jun 18 19:38:08 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
        display.

        * gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
        missing check for mv_resize == NULL.
parent 09a33a8a
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
Tue Jun 18 19:38:08 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkinput.c (_gdk_init_input_core): Set the
display.
* gdk/x11/gdkwindow-x11.c (_gdk_moveresize_handle_event): Fix
missing check for mv_resize == NULL.
Tue Jun 18 19:30:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeview.c: Typo fix.
......
......@@ -44,7 +44,10 @@ static GdkDeviceAxis gdk_input_core_axes[] = {
void
_gdk_init_input_core (GdkDisplay *display)
{
GdkDevicePrivate *private;
display->core_pointer = g_object_new (GDK_TYPE_DEVICE, NULL);
private = (GdkDevicePrivate *)display->core_pointer;
display->core_pointer->name = "Core Pointer";
display->core_pointer->source = GDK_SOURCE_MOUSE;
......@@ -54,6 +57,8 @@ _gdk_init_input_core (GdkDisplay *display)
display->core_pointer->axes = gdk_input_core_axes;
display->core_pointer->num_keys = 0;
display->core_pointer->keys = NULL;
private->display = display;
}
GType
......
......@@ -4349,7 +4349,7 @@ _gdk_moveresize_handle_event (XEvent *event)
GdkDisplay *display= gdk_x11_lookup_xdisplay (event->xany.display);
MoveResizeData *mv_resize = get_move_resize_data (display, FALSE);
if (!mv_resize->moveresize_window)
if (!mv_resize || mv_resize->moveresize_window)
return FALSE;
window_private = (GdkWindowObject *) mv_resize->moveresize_window;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment