GtkHandleBox positioning bug



Hi !

I tried to fix the wrong initial position of the float window, but
without success. The problem is the following code in gtk_handle_box_motion :

[..]
gdk_window_get_size (hb->bin_window, &width, &height);
gdk_window_move_resize (hb->float_window, new_x, new_y, width, height);
gdk_window_reparent (hb->bin_window, hb->float_window, 0, 0);
gdk_window_set_hints (hb->float_window, new_x, new_y, 0, 0, 0, 0, GDK_HINT_POS);
gdk_window_show (hb->float_window);
hb->float_window_mapped = TRUE;
[..]

If you slowly move the mouse pointer to the handle's border, the first
gdk_window_move_resize() during the detach seems to have no effect. The
window gets placed randomly. A _move_resize() *after* a _show() works, 
but for a short time the (not yet correctly moved) window gets visible.
Can't be that difficult... ?!

bye,
   Stefan



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