in reply to Re: Gtk2 window dragging
in thread Gtk2 window dragging

Thanks! But, this only tells me how to check the window's current position. It doesn't tell me that a drag has started, or that a drag has stopped.

I want to take some action at the end of the drag operation, for example displaying a message, or even moving the window back to its original position.

I could check the window's position after every Gtk2 event, of course. But this only tells me that the window is moving. It doesn't tell me when the window has stopped moving.

Replies are listed 'Best First'.
Re^3: Gtk2 window dragging
by FreeBeerReekingMonk (Deacon) on May 21, 2015 at 20:21 UTC

    Hmm.. I am afraid you will need to do it that old fashioned way. Detect a focus change event, then check with your recorded X,Y, if the same, it is a window move start and on the next focus change event, that is the window move end...
    I tried signal_connect to all these other events: http://gtk2-perl.sourceforge.net/doc/gtk2-perl-tut/sec-Events.html They do not give anything for window...