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.
This commit is contained in:
Owen Taylor 2002-06-18 23:37:05 +00:00 committed by Owen Taylor
parent 09a33a8aec
commit a0cd7079cc
8 changed files with 54 additions and 1 deletions

View File

@ -1,3 +1,11 @@
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.

View File

@ -1,3 +1,11 @@
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.

View File

@ -1,3 +1,11 @@
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.

View File

@ -1,3 +1,11 @@
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.

View File

@ -1,3 +1,11 @@
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.

View File

@ -1,3 +1,11 @@
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.

View File

@ -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

View File

@ -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;