]> Pileus Git - ~andy/gtk/commit
add g_return_if_fail for monitor number <= 0
authorHavoc Pennington <hp@redhat.com>
Thu, 17 Oct 2002 20:24:03 +0000 (20:24 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Thu, 17 Oct 2002 20:24:03 +0000 (20:24 +0000)
commit727eb8afbd66433f9f5a9437fafa6299cd75f3dd
treec9dee61940e50715b031bbf1664ec8cc878b23bf
parentde89785a28b0b141ff4c9ea5a7798320ed8082d9
add g_return_if_fail for monitor number <= 0

2002-10-16  Havoc Pennington  <hp@redhat.com>

* gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add
g_return_if_fail for monitor number <= 0

* gtk/gtkmenu.c (gtk_menu_position): handle case where pointer
is outside the screen.

* gtk/gtkwindow.c (get_monitor_center): factor out
the code to position a window in center
(gtk_window_compute_configure_request): use here
(gtk_window_constrain_position): use here, the
code here wasn't multihead-aware

* gdk/x11/gdkevents-x11.c (get_real_window): function to
return the window the event describes, rather than the window
that received the event.
(gdk_event_translate): use result of that function for
filling in GdkEvent::window, which only matters for
MapNotify/UnmapNotify and ConfigureNotify, in practice.

Unbreaks various things using SubstructureNotifyMask.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkevents-x11.c
gdk/x11/gdkscreen-x11.c
gtk/gtkmenu.c
gtk/gtkwindow.c