Lazarus Not Regaining Focus lazarus / 13-General ---------------------------------------------------------------------- jamhitz · 2014-11-05 22:04 Hello People, I have just upgraded to Opensuse 13.2 and I must say it is looking good. However, Lazarus (both 1.24 and 1.26) are behaving funny. When I open a dialog (say File -> New and then choose Cancel), my Windows remain darkened (as if if they do not have focus), even though they are not disabled. (Please see the attachments below for Before and After). It is not until I click File -> Quit  (Abort) that I get normal focus again. This only seems to affect Lazarus. I tried other multi-window applications (Gimp), but it seems to be Ok. Any ideas what's up?! I am on KDE, FPC 2.6.4 Thanks. ---------------------------------------------------------------------- JuhaManninen · 2014-11-05 23:08 See   https://www.mail- archive.com/lazarus@lists.lazarus.freepascal.org/msg44651.html There is a workaround but the fundamental reason is not known. ---------------------------------------------------------------------- jamhitz · 2014-11-06 06:15 Thank you @JuhaMannien. I'd just figured out the same workaround as in the post above. ---------------------------------------------------------------------- zeljko · 2014-11-06 12:38 @jamhitz, is it 32 or 64bit suse ? Running in virtual machine or real hw ? ---------------------------------------------------------------------- zeljko · 2014-11-06 14:07 Ok , reproduced .... and there's no issue about it  ...  I'll open one and fix it so we can track (yes, I've fixed it). ---------------------------------------------------------------------- zeljko · 2014-11-06 14:09 http://bugs.freepascal.org/view.php?id=27007 ---------------------------------------------------------------------- zeljko · 2014-11-06 14:28 You can test provided patch (that patch should be good for 1.2.6 too). Patch fixes modal forms, but not yet dialogs, that must be separatelly fixed...also message dialogs. ---------------------------------------------------------------------- JuhaManninen · 2014-11-08 09:33 Zeljko, it works well! It should be committed IMO. ---------------------------------------------------------------------- zeljko · 2014-11-11 09:17 @Juha, as I already commented at mantis. It works only for forms. Dialogs still shows same bug (must create patch for that part too).