Re: How to move, resize and redraw a window at the same time?
- From: "Zhe Su" <james su gmail com>
- To: "Havoc Pennington" <hp pobox com>
- Cc: gtk-devel-list gnome org, gtk-app-devel-list gnome org
- Subject: Re: How to move, resize and redraw a window at the same time?
- Date: Tue, 20 May 2008 12:00:52 +0800
Thanks a lot.
On Tue, May 20, 2008 at 11:52 AM, Havoc Pennington <hp pobox com
2008/5/19 Zhe Su <email@example.com>:
> So I'm wondering is there and method to move, resize and redraw a windowThe underlying X window system doesn't support doing this, though it
> at the same time to avoid flick?
may in the future as compositing managers become the norm.
The best you can do with X is to not clear the window when it's
resized, but you can't atomically resize and repaint because those
things are separate X server commands and the server does not do
Well, setting a window size and position manually on a mapped window
> And I'm wondering why there is no
> gtk_window_move_resize() for gtk window.
is a pretty uncommon operation, so most likely nobody has asked to do
it. It probably works fine to do
gdk_window_move_resize(window_widget->window) as a workaround.
If this function is ok, then I'll stick with it. Is there any side effect?
The docs on gtk_window_move(), gtk_window_set_default_size(), etc.
(and the implementation source code of same) may be of interest, if
you're digging into this area.
] [Thread Prev