[adg-demo] Hold last wndEdit position
commitc6f017645a01d10a07922eaae1e70dddafde8333
authorNicola Fontana <ntd@entidi.it>
Tue, 27 Apr 2010 14:41:53 +0000 (27 16:41 +0200)
committerNicola Fontana <ntd@entidi.it>
Tue, 27 Apr 2010 14:41:53 +0000 (27 16:41 +0200)
tree3a8cb2ec2c6bb1fca5e02834f139fc6041a5588a
parent40029b2cfcb32d727f0ac1f7c17e2840d984db11
[adg-demo] Hold last wndEdit position

The old one-time callback was setting the USER_POS hint after the window
was positioned the first time. This worked great for "delete-event" and
default "close" signal (that is, closing the dialog with the window
manager or pressing the [ESC] key), but I did not find a viable way to
do the same with inside a "response" answer (that is, after a click on
the "Close" button).

The new approach adds a callback to the "response" signal that stores
the window position, hides it and moves the window to the old position
again. This works flawlessy with openbox-3.4.11.1, and I really hope to
not touch this stuff again because the window manager interactions seems
to be a big mess...
demo/adg-demo.c