gtk_window_move can't move GtkWindow to negative position.



Hello 

Using gtk_window_move, I give negative value to GtkWindow. 
(e.g. gtk_window_move (GTK_WINDOW (window), -100, -100))
But it's not moving to the negative position I given.

Even if the position of xconfigure is (-100, -100), this value doesn't helpful.
Because xevent->xconfigure.send_event is FALSE, then XTranslateCoordinates is called.
And it returns new positive value. e.g. (4, 24).
Is it a bug? 

[ in gdkdisplay-x11.c ]
   if (!xevent->xconfigure.send_event &&
       !xevent->xconfigure.override_redirect &&
       !GDK_WINDOW_DESTROYED (window))
     {
       gint tx = 0;
       gint ty = 0;
       Window child_window = 0;
       gdk_error_trap_push ();
       if (XTranslateCoordinates (GDK_DRAWABLE_XDISPLAY (window),
      GDK_DRAWABLE_XID (window),
      screen_x11->xroot_window,
      0, 0,
      &tx, &ty,
      &child_window))
  {
    event->configure.x = tx;
    event->configure.y = ty;
  }
       gdk_error_trap_pop ();
     }
   else
     {
       event->configure.x = xevent->xconfigure.x;
       event->configure.y = xevent->xconfigure.y;
     }

Cheers

Attachment: temp.tar.gz
Description: Binary data



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