[Lazarus] usability: please not focus the messages window, only bring to front
zeljko
zeljko at holobit.net
Tue May 22 16:22:47 CEST 2012
On Tuesday 22 of May 2012 15:24:21 Bernd wrote:
> 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.
Lucky you, your example raises problem on my machine which is not so slow
Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz + 8 GB ram (qtlcl).
Running xfwm in another screen (startx -- :1) - focus stays at form1 all the
time :), under kwin and metacity it works perfect. Seem that xfwm makes some
lag when switching focus, so I have to dig into xfwm sources and see what's up
and then fix qt and gtk2.
>
> 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.
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120522/2dfe8af8/attachment-0003.html>
More information about the Lazarus
mailing list