Version: (using KDE Devel) Installed from: Compiled sources Using focus prevention 'normal' gives me lots of problems where newly started application windows appear under the existing ones. Example; the alt-F2 window never gets initial focus. clicking on the wallet manager systray icon starts the wallet manager underneath my already running konqueror the initial wallet dialog (the wizard for first time use) started under my kmail config dialog freezing everything until I did an alt-tab. I tried different mouse focus policies; they did not seem to make any difference.
Worksforme. Please provide more details about your setup.
3.5 branch. amd 64 qt-copy gcc 4.0.1 Anything else that might be of interrest?
Created attachment 12832 [details] test app Yes, I just don't know what exactly it should be. Giving me the number reported by the attached testapp might be useful, maybe. And you can bet I'd be flooded by bugreports if was happening to everybody.
Cannot reproduce, don't have enough info to even guess -> closing.
I would like to step in here. I am also able to reproduce the above described behaviour. However it does not happen when "focus stealing prevention level" is set to "none". Some output values of the above test app (they differ slightly): -1344241288 -1345474097 -1344236415 Hopefully that means more to you than to me :-) I didn't see this behaviour a month ago, but I remember changing the focus policy option to see what effect it has. After that I changed it back to "low" which is the default, but it didn't work like it should, but like the initial reporter described. Some additional info: KDE 3.5.1, Qt 3.3.4, gcc 3.4.4 (I don't think it's important, but I also have an amd64 like the initial reporter)
Well, back again. I solved this issue back then, with removing the ~/.kde/share/config/*kwin* files (i believe). But the behaviour is now occuring again, and I have no idea why. I'm sure, I haven't change any kwin related things. If I remove kwinrc, kill kwin and restart it, the behaviour is correct. But only for windows which were open, when i restarted kwin. So, if an app has focus which was running when restarting kwin and I click on the kopete systray icon, kopete opens and gets focus. If I start eg. konqueror (after restarting kwin!) and it has focus while clicking on the kopete systray icon, kopete will open in the background without focus. I have also tested it with a new user and it shows the same behaviour. I'm willing to provide further info, if necessary. So even though this bug is marked RESOLVED, it is certainly NOT! PS: KDE 3.5.2, Qt 3.3.4, gcc 4.1,
64bit architecture seems to be what triggers this problem. I've committed some fixes, if you can still reproduce the problem with KDE3.5.3 (or current SVN) please reopen.
Hello Lubos, thank you for taking care. I've checked out 3.5 svn but can't compile it, 2 functions are missing: utils.h: In function 'int KWinInternal::timestampCompare(Time, Time)': utils.h:235: error: 'timestampCompare' is not a member of 'NET' utils.h: In function 'Time KWinInternal::timestampDiff(Time, Time)': utils.h:241: error: 'timestampDiff' is not a member of 'NET' make[1]: *** [workspace.lo] Error 1 Indeed I can't find this member functions anywhere? So where did they go? :-) regards
You also need to update kdelibs/kdecore :)
grazie! I've recompiled and it's working like a charm again. That's truly one of the features of KDE you only recognize, when it's failing. for the interested reader, this are the patches: http://websvn.kde.org/branches/KDE/3.5/kdebase/kwin/utils.h?rev=528574&r1=514432&r2=528574 http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdecore/netwm_def.h?rev=528573&r1=494899&r2=528573 http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdecore/netwm.cpp?rev=528573&r1=438982&r2=528573 http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdecore/kxerrorhandler.cpp?rev=528591&r1=527958&r2=528591 http://websvn.kde.org/branches/KDE/3.5/kdelibs/kdecore/kapplication.cpp?rev=528573&r1=523961&r2=528573
Over the last couple of months I had kwin crash on me every time I exited KDE, I contributed this to X (which was an unstable cvs version). After upgrading X the other day, I found I was mistaking. Many thanks for those set of fixes as they fix my kwin from crashing for good no. :)