Fix wrong sign for queued translation. (Found by Chris Blizzard, #100274)

Tue Dec  3 17:47:24 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
        sign for queued translation. (Found by Chris Blizzard,
        #100274)
This commit is contained in:
Owen Taylor 2002-12-03 22:54:09 +00:00 committed by Owen Taylor
parent 58d7ca8102
commit a58708c484
7 changed files with 40 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -1,3 +1,9 @@
Tue Dec 3 17:47:24 2002 Owen Taylor <otaylor@redhat.com>
* gdk/x11/gdkgeometry-x11.c (gdk_window_guffaw_scroll): Fix wrong
sign for queued translation. (Found by Chris Blizzard,
#100274)
2002-12-03 Matthias Clasen <maclas@gmx.de>
Moveresize emulation for all edges. (#52833)

View File

@ -331,8 +331,8 @@ gdk_window_guffaw_scroll (GdkWindow *window,
gdk_window_tmp_unset_bg (window);
if (d_xoffset < 0 || d_yoffset < 0)
gdk_window_queue_translation (window, MIN (d_xoffset, 0), MIN (d_yoffset, 0));
if (dx > 0 || dy > 0)
gdk_window_queue_translation (window, MAX (dx, 0), MAX (dy, 0));
gdk_window_set_static_gravities (window, TRUE);
@ -357,8 +357,8 @@ gdk_window_guffaw_scroll (GdkWindow *window,
GDK_WINDOW_XID (window),
new_position.x - d_xoffset, new_position.y - d_yoffset);
if (d_xoffset > 0 || d_yoffset > 0)
gdk_window_queue_translation (window, MAX (d_xoffset, 0), MAX (d_yoffset, 0));
if (dx < 0 || dy < 0)
gdk_window_queue_translation (window, MIN (dx, 0), MIN (dy, 0));
XMoveResizeWindow (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XID (window),