GdbRgb flicker



Hi again,

I'm looking at the GdkRgb example program, "Example 1" from,

  http://developer.gnome.org/doc/API/gdk/gdk-gdkrgb.html

It works fine, but I have my window manager (sawfish) set to do 
opaque window resizes, and on every resize the background of
the window gets cleared before on_darea_expose() is called,
resulting in a noticeable flicker.

I tracked this behavior down to this code path,

  gtk_main  
  ...
  g_idle_dispatch
  ...
  gtk_drawing_area_size_allocate  
  gdk_window_move_resize
  XMoveResizeWindow

It looks like XMoveResizeWindow actually clears the window contents.

Of course, I would like it to leave the window contents as-is, and just 
redraw the RGB data over top of whatever was there.

In a similar application, I tried subclassing GktDrawingArea and
overriding size_allocate(), just ignoring the move_resize call, and indeed
it does not flicker, but then I can't draw into the extended window space
(it just stays gray), I'm guessing because it never tells the X server how
big the window is(?).

Any suggestions to make this work the way I want?

Will Gtk2's non-flicker feature fix this?

Thanks,
-Jamie




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