forked from AuroraMiddleware/gtk
window: Never call gdk_surface_move
With gtk_window_set_position gone, we should never come up with a new position to set in this code. Leave a warning in place and remove the gdk_surface_move calls.
This commit is contained in:
parent
d6d5d60703
commit
74db7cbe00
@ -7135,16 +7135,10 @@ gtk_window_move_resize (GtkWindow *window)
|
||||
|
||||
/* Now send the configure request */
|
||||
if (configure_request_pos_changed)
|
||||
{
|
||||
gdk_surface_move_resize (priv->surface,
|
||||
new_request.x, new_request.y,
|
||||
new_request.width, new_request.height);
|
||||
}
|
||||
else /* only size changed */
|
||||
{
|
||||
gdk_surface_resize (priv->surface,
|
||||
new_request.width, new_request.height);
|
||||
}
|
||||
g_warning ("configure request position changed. This should not happen. Ignoring the position");
|
||||
|
||||
gdk_surface_resize (priv->surface,
|
||||
new_request.width, new_request.height);
|
||||
|
||||
if (priv->type == GTK_WINDOW_POPUP)
|
||||
{
|
||||
@ -7167,10 +7161,7 @@ gtk_window_move_resize (GtkWindow *window)
|
||||
/* Handle any position changes.
|
||||
*/
|
||||
if (configure_request_pos_changed)
|
||||
{
|
||||
gdk_surface_move (priv->surface,
|
||||
new_request.x, new_request.y);
|
||||
}
|
||||
g_warning ("configure request position changed. This should not happen. Ignoring the position");
|
||||
|
||||
gtk_widget_measure (widget, GTK_ORIENTATION_HORIZONTAL, current_height,
|
||||
&min_width, NULL, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user