Re: GtkWindow changes



On 24 Sep 2001, Owen Taylor wrote:

> @@ -4281,8 +4256,22 @@ gtk_window_move_resize (GtkWindow *windo
>      }
>    else
>      {
> -      /* Not requesting anything new from WM, just had a queue resize
> -       * for some reason, so handle the resize queue
> +      /* Handle any position changes.
> +       */
> +      if (configure_request_pos_changed)
> +	{
> +	  if (window->frame)
> +	    {
> +	      gdk_window_move (window->frame,
> +			       new_request.x - window->frame_left,
> +			       new_request.y - window->frame_top);
> +	    }
> +	  else
> +	    gdk_window_move (widget->window,
> +			     new_request.x, new_request.y);
> +	}
> +      
> +      /* And run the resize queue.
>         */
>        if (container->resize_widgets)
>          gtk_container_resize_children (container);

hum, doesn't this mess up the window->configure_request_count here?
iirc, a window manager should honour any of move/resize/move_resize
with a configure event.


---
ciaoTJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]