How to move, resize and redraw a window at the same time?
- From: "Zhe Su" <james su gmail com>
- To: gtk-app-devel-list gnome org
- Cc: gtk-devel-list gnome org
- Subject: How to move, resize and redraw a window at the same time?
- Date: Tue, 20 May 2008 11:12:57 +0800
I just found that gdk_window_move_resize() can move and resize a gdk window at the same time to avoid flick. However I found that it's still not possible to redraw the window immediately after move and resize. I tried following code:
gdk_window_move_resize(window_->window, x, y, width, height);
gdk_window_invalidate_rect(window_->window, NULL, TRUE);
Expose handler will be called immediately, but using gdk_drawable_get_size() to check the window size inside expose handler, found that it's not updated immediately. So the window content still can't be updated immediately and flick is still noticeable.
So I'm wondering is there and method to move, resize and redraw a window at the same time to avoid flick? And I'm wondering why there is no gtk_window_move_resize() for gtk window.
] [Thread Prev