GTK2 + Compiz: top and left in OnClose of Form not correct
Original Reporter info from Mantis: shokwave
-
Reporter name: Ingo Steiniger
Original Reporter info from Mantis: shokwave
- Reporter name: Ingo Steiniger
Description:
When trying to store the values of Form.Left and Form.Top in the OnClose event I get wrong (starting/creating) values.
This is no issue before r27625 or without Compiz.
Log says:
r27625 | zeljko | 2010-10-08 20:47:02 +0200 (Fr, 08. Okt 2010) | 2 Zeilen
Gtk2: fixed alien configure events from composition manager (usually compiz). fixed #17523 (closed)
Additional information:
Tested on Ubuntu 10.10 x64 with fpc 2.5.1 r16153 and Laz trunk before and after r27625.
To Reproduce just create new Project. Place a label somewhere and add this procedures.
procedure TForm1.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
showMessage(IntToStr(Left)+'-'+IntToStr(Top)+'-'+IntToStr(Width)+'-'+IntToStr(Height));
end;
procedure TForm1.FormShow(Sender: TObject);
begin
Label1.Caption:=IntToStr(Left)+'-'+IntToStr(Top)+'-'+IntToStr(Width)+'-'+IntToStr(Height);
end;
Mantis conversion info:
- Mantis ID: 17625
- Version: 0.9.29 (SVN)
- Fixed in revision: 27705 (#22c960e0)