This is my first message on this forum, so, first of all, I'd like to say 'hello' to all of you
Recently I've come across some strange behavior of LCL and I can't say if it is a bug or feature
My application consists of two forms - main one with size equal to screen size, BorderStyle set to bsNone and FormStyle set to fsSystemStayOnTop (in other words - it's full-screen window always staying on the foreground). The second one is created dynamically and showed with ShowModal. On Windows everything works just fine, but problem/unwanted behavior occurs on Linux.
When I try to display the second form by ShowModal, the new window goes behind the main window, which becomes disabled. I am not able to show the second form on top of the main window, even Alt+Tab can't bring it to the foreground, Form2.BringToFront also fails. Everything works OK when I use Form2.Show instead of ShowModal.
I've noticed, that this happens only when the main form has no border. When I leave BorderStyle set to bsNormal, I can ShowModal the second form and everything works like I expect: new form is shown on the foreground, the main form in the background is disabled and I can't switch to the main form as long, as Form2 is opened.
Please - check if you can you reproduce this situation and let me know about results. Firstly I'd like to find out, what is the reason of such application behavior, is it my mistake (and if it is - how can I fix it?) or is it something about the way LCL is implemented on Linux. I am using Linux Mint 19.1 MATE and Lazarus 1.8.4.