[Lazarus] usability: please not focus the messages window, only bring to front

Bernd prof7bit at googlemail.com
Tue May 22 15:24:21 CEST 2012


with Qt it is even worse. A single ProcessMessages is not enough, I
have to *wait* until the other window actually has received focus
before I am allowed to proceed to issue the next focus change.

procedure TForm1.DoItBetter;
begin
  F1.ShowOnTop;

  while not F1.Active do begin;
    writeln(FormatDateTime('ss.zzz', Now));
    Application.ProcessMessages;
  end;

  F2.ShowOnTop;
  WriteLn('done');
end;

53.055
53.056
53.057
53.058
53.058
53.058
53.058
53.058
53.058
53.058
53.058
53.058
53.058
53.058
done

It takes a few milliseconds with other window managers too but with
xfwm4 I really have to wait. Other WMs do not require me to wait, with
xfwm4 I have to wait until OtherFom1 is actually officially active
until I may proceed with activating OtherForm2.




More information about the Lazarus mailing list