*/
static GSList *update_windows = NULL;
static guint update_idle = 0;
-static gboolean debug_updates = FALSE;
static void
gdk_window_directfb_process_all_updates (void)
static gboolean
gdk_window_update_idle (gpointer data)
{
- GDK_THREADS_ENTER ();
gdk_window_directfb_process_all_updates ();
- GDK_THREADS_LEAVE ();
return FALSE;
}
if (!update_idle)
{
- update_idle = g_idle_add_full (GDK_PRIORITY_REDRAW,
+ update_idle = gdk_threads_add_idle (GDK_PRIORITY_REDRAW,
gdk_window_update_idle, NULL, NULL);
}
}
if (window == gdk_directfb_focused_window)
gdk_directfb_change_focus (NULL);
-/*
-printf( " DESTROYING WINDOW %p %p %d parent=%p\n",window,impl->window,recursing,(GDK_WINDOW_OBJECT (window))->parent);
-*/
if (!recursing && !foreign_destroy && impl->window ) {
impl->window->SetOpacity (impl->window,0);
impl->window->Close(impl->window);
if (!gdk_region_empty (visible_region))
{
- //if (debug_updates)
- // draw_ugly_color (window, region);
if (private->update_area)
{
gdk_window_schedule_update (window);
}
}
-
gdk_region_destroy (visible_region);
}
GdkRegion *expose_region;
GdkRegion *window_region;
gint width, height;
-
- //if (debug_updates)
- // {
- /* Make sure we see the red invalid area before redrawing. */
- // gdk_display_sync (gdk_drawable_get_display (window));
- //g_usleep (70000);
- //}
-
save_region = _gdk_windowing_window_queue_antiexpose (window, update_area);
if (save_region)
event.expose.count = 0;
event.expose.region = expose_region;
gdk_region_get_clipbox (expose_region, &event.expose.area);
-
(*_gdk_event_func) (&event, _gdk_event_data);
g_object_unref (window);
gint i;
+ g_assert (region != NULL );
wimpl = GDK_WINDOW_IMPL_DIRECTFB (paintable);
impl = (GdkDrawableImplDirectFB *)wimpl;
impl->buffered = TRUE;
{
DFBRegion reg = { impl->paint_region->extents.x1,
impl->paint_region->extents.y1,
- impl->paint_region->extents.x2 - 1,
- impl->paint_region->extents.y2 - 1 };
-
- _gdk_directfb_update (impl, ®);
+ impl->paint_region->extents.x2 ,
+ impl->paint_region->extents.y2 };
+ impl->surface->Flip(impl->surface, ®,0);
gdk_region_destroy (impl->paint_region);
impl->paint_region = NULL;
}
iface->process_updates = gdk_window_impl_directfb_process_updates;
}
+void
+gdk_window_beep (GdkWindow *window)
+{
+ gdk_display_beep (gdk_display_get_default());
+}
+
#define __GDK_WINDOW_X11_C__
#include "gdkaliasdef.c"