add the moveresize idle at META_PRIORITY_RESIZE so it runs before GTK does

2003-09-30  Havoc Pennington  <hp@redhat.com>

	* src/window.c (meta_window_queue_move_resize): add the moveresize
	idle at META_PRIORITY_RESIZE so it runs before GTK does any
	drawing, may fix bug #109211 (seem to for me)

	* src/ui.h (META_PRIORITY_RESIZE): add this between GTK
	resize/redraw priorities

	* src/display.c (meta_display_queue_retheme_all_windows): remove
	some debug spew from meta_warning
This commit is contained in:
Havoc Pennington 2003-09-30 20:36:02 +00:00 committed by Havoc Pennington
parent 5fdb8ab7d6
commit 199d20197e
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,15 @@
2003-09-30 Havoc Pennington <hp@redhat.com>
* src/window.c (meta_window_queue_move_resize): add the moveresize
idle at META_PRIORITY_RESIZE so it runs before GTK does any
drawing, may fix bug #109211 (seem to for me)
* src/ui.h (META_PRIORITY_RESIZE): add this between GTK
resize/redraw priorities
* src/display.c (meta_display_queue_retheme_all_windows): remove
some debug spew from meta_warning
2003-09-30 Havoc Pennington <hp@redhat.com> 2003-09-30 Havoc Pennington <hp@redhat.com>
* src/testasyncgetprop.c: remove nonstandard header include, * src/testasyncgetprop.c: remove nonstandard header include,

View File

@ -3237,7 +3237,6 @@ meta_display_queue_retheme_all_windows (MetaDisplay *display)
{ {
MetaWindow *window = tmp->data; MetaWindow *window = tmp->data;
meta_warning("from retheme\n");
meta_window_queue_move_resize (window); meta_window_queue_move_resize (window);
if (window->frame) if (window->frame)
{ {

View File

@ -29,6 +29,9 @@
#include <glib.h> #include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h> #include <gdk-pixbuf/gdk-pixbuf.h>
/* This is between GTK_PRIORITY_RESIZE and GTK_PRIORITY_REDRAW */
#define META_PRIORITY_RESIZE (G_PRIORITY_HIGH_IDLE + 15)
typedef struct _MetaUI MetaUI; typedef struct _MetaUI MetaUI;
typedef struct _MetaImageWindow MetaImageWindow; typedef struct _MetaImageWindow MetaImageWindow;

View File

@ -2882,7 +2882,8 @@ meta_window_queue_move_resize (MetaWindow *window)
window->move_resize_queued = TRUE; window->move_resize_queued = TRUE;
if (move_resize_idle == 0) if (move_resize_idle == 0)
move_resize_idle = g_idle_add (idle_move_resize, NULL); move_resize_idle = g_idle_add_full (META_PRIORITY_RESIZE,
idle_move_resize, NULL, NULL);
move_resize_pending = g_slist_prepend (move_resize_pending, window); move_resize_pending = g_slist_prepend (move_resize_pending, window);
} }