forked from AuroraMiddleware/gtk
Fix bug where moving a toplevel window immediately after sizing it would
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where moving a toplevel window immediately after sizing it would result in it being sized back to the old size since impl->width, impl->height aren't updated until we hear back from the server. There is still a (longstanding) bug here that gdk_window_get_size() will give the wrong size until we do hear back.
This commit is contained in:
parent
78500e9045
commit
6e3a2369b3
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -1,3 +1,13 @@
|
||||
Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
|
||||
moving a toplevel window immediately after sizing it would
|
||||
result in it being sized back to the old size since
|
||||
impl->width, impl->height aren't updated until we hear
|
||||
back from the server. There is still a (longstanding) bug
|
||||
here that gdk_window_get_size() will give the wrong size
|
||||
until we do hear back.
|
||||
|
||||
2000-08-31 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
|
||||
|
@ -749,9 +749,19 @@ gdk_window_move (GdkWindow *window,
|
||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||
|
||||
impl = GDK_WINDOW_IMPL_X11 (private->impl);
|
||||
|
||||
gdk_window_move_resize (window, x, y,
|
||||
impl->width, impl->height);
|
||||
|
||||
if (!GDK_WINDOW_DESTROYED (window))
|
||||
{
|
||||
if (GDK_WINDOW_TYPE (private) == GDK_WINDOW_CHILD)
|
||||
_gdk_window_move_resize_child (window, x, y,
|
||||
impl->width, impl->height);
|
||||
else
|
||||
{
|
||||
XMoveWindow (GDK_WINDOW_XDISPLAY (window),
|
||||
GDK_WINDOW_XID (window),
|
||||
x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@ -814,6 +824,7 @@ gdk_window_move_resize (GdkWindow *window,
|
||||
XMoveResizeWindow (GDK_WINDOW_XDISPLAY (window),
|
||||
GDK_WINDOW_XID (window),
|
||||
x, y, width, height);
|
||||
private->resize_count += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user