The window frame appears for a second at startup and disappears lazarus / 1-Linux ---------------------------------------------------------------------- Helltar · 2022-12-04 00:11 Here is a screencast, it will be clearer: https://youtu.be/cONZ5jnjIeU I do not understand why this is happening. Lazarus 2.2.4 Qt ---------------------------------------------------------------------- dbannon · 2022-12-04 07:23 Sorry, I don't click on random links, especially from a first poster.  Show the code, ideally a simplified version of it. I often find, making that simplified version of a problem is enough for me to see what I am doing wrong ! Davo ---------------------------------------------------------------------- MarkMLl · 2022-12-04 08:28 I've looked at it using a sacrificial browser and I haven't a clue what's being demonstrated. I /think/ it's some version of Linux running KDE, hence is possibly germane to the problems in Gus's thread. PLEASE could we have more details, preferably with demonstration code and a full description of what OS etc. is being used. I'd also suggest that reporting a potential problem via a public channel such as Youtube, rather than raising it in the forum or one of the mailing lists, is an extremely reliable way to make oneself highly unpopular. MarkMLl ---------------------------------------------------------------------- balazsszekely · 2022-12-04 08:58 Apparently there is a second smaller, minimized(?) window, see attached image. It's absolutely not clear if the second window is an artifact(bug?) or more forms are involved. ---------------------------------------------------------------------- MarkMLl · 2022-12-04 09:54 Quote from: GetMem on December 04, 2022, 09:58:08 amApparently there is a second smaller, minimized(?) window, see attached image. It's absolutely not clear if the second window is an artifact(bug?) or more forms are involved. Yes. It's also not clear whether this is an artifact of starting to program from Dolphin (KDE's file etc. manager). MarkMLl ---------------------------------------------------------------------- zeljko · 2022-12-04 09:59 Quote from: Helltar on December 04, 2022, 01:11:46 amHere is a screencast, it will be clearer: https://youtu.be/cONZ5jnjIeU I do not understand why this is happening. Lazarus 2.2.4 Qt I guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6) ---------------------------------------------------------------------- MarkMLl · 2022-12-04 12:32 I don't see that behaviour when starting a program using Dolphin on KDE even with e relatively slow machine. MarkMLl ---------------------------------------------------------------------- Helltar · 2022-12-04 14:37 QuoteSorry, I don't click on random links, especially from a first poster.  Show the code, ideally a simplified version of it. Yes, I understand, but it's just YouTube, I just don't know how to describe it in words. On the video is clean form (Hello World), but it window is also present in my projects, at first I thought it was something on my part, but probably not. QuoteI /think/ it's some version of Linux running KDE, hence is possibly germane to the problems in Gus's thread. About KDE, the same thing happens on GNOME (Ubuntu). QuoteI guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6) Thanks, I'll look. No, machine is fine, 16 ram ssd i5. Today I checked on gtk2, there is no such thing, most likely it is because of Qt. Here are my programs built with Qt interface, everywhere the same window at startup that appears for half a second. - https://github.com/Helltar/AMPASIDE - https://github.com/Helltar/plainotepad - https://github.com/Helltar/gcencryptor I use Arch Linux, qt library of this version: - https://archlinux.org/packages/community/x86_64/qt5pas Lazarus 2.2.4: - https://archlinux.org/packages/community/x86_64/lazarus-qt5/ ---------------------------------------------------------------------- Helltar · 2022-12-04 14:57 Quote from: zeljko on December 04, 2022, 10:59:16 amQuote from: Helltar on December 04, 2022, 01:11:46 amHere is a screencast, it will be clearer: https://youtu.be/cONZ5jnjIeU I do not understand why this is happening. Lazarus 2.2.4 Qt I guess it's some slow machine, add -disableaccurateframe to your program cmd line.  Same cmdline param applies to all X11 widgetsets (gtk2, qt, qt5 and qt6) Thank you! That helped. https://wiki.freepascal.org/Lazarus_2.2.0_release_notes#Widgetsets QuoteQt, Qt5 and Gtk2: Form dimensions are accurate now on x11 (frame around form). Solution is provided by creating dummy widget before Application.MainForm.Handle is created. This can be disabled via command line switch "-disableaccurateframe". This feature is used inside WidgetSet.GetWindowRect() only. ---------------------------------------------------------------------- MarkMLl · 2022-12-04 16:28 Arch is, of course, well-respected but there's always a chance that they've done something odd when building the package: pulled a not- quite stable one from the official repository etc. Apropos your initial youtu.be posting, you should be aware that there have been multiple cases of malware embedded in YouTube videos. A text description possibly supported with a screenshot would have been far more welcome. MarkMLl ---------------------------------------------------------------------- hansotten · 2022-12-04 17:48 Quote from: MarkMLl on December 04, 2022, 05:28:00 pmApropos your initial youtu.be posting, you should be aware that there have been multiple cases of malware embedded in YouTube videos. A text description possibly supported with a screenshot would have been far more welcome. MarkMLl I have never heard malware infections from playing youtube videos. Of course, if one clicks on links, in description/comments ... You have links of reports otherwise. ---------------------------------------------------------------------- MarkMLl · 2022-12-04 18:19 Quote from: hansotten on December 04, 2022, 06:48:07 pmI have never heard malware infections from playing youtube videos. Of course, if one clicks on links, in description/comments ... You have links of reports otherwise. With respect, I'm surprised: this really is very old news. https://security.stackexchange.com/questions/18086/virus-encoded-in- video https://packetstormsecurity.com/files/159605/HiSilicon-Video- Encoder-Buffer-Overflow-Denial-Of-Service.html https://www.cvedetails.com/vulnerability- list/vendor_id-26/product_id-1032/Microsoft-Windows-Media-Player.html plus /many/ others. MarkMLl