Bug 333826 - losing focus arbitrarily
Summary: losing focus arbitrarily
Status: RESOLVED DUPLICATE of bug 318350
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.8
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 13:50 UTC by Maxime Deraspe
Modified: 2014-04-25 15:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Deraspe 2014-04-24 13:50:26 UTC
The current window lose focus arbitrarily. It sometimes open up Run Command, sometime just losing focus.

Reproducible: Sometimes
Comment 1 Christoph Feck 2014-04-24 18:46:38 UTC
Looks related to bug 333595. Is this a multiple screen setup?
Comment 2 Maxime Deraspe 2014-04-24 18:56:38 UTC
(In reply to comment #1)
> Looks related to bug 333595. Is this a multiple screen setup?

Yes it is multiple screen set-up, I will try to reproduce on a single screen setup. 

It really seems stochastic for when it happens or it might be related to some kwidget running in the background giving hidden notifications or something. I have knotes, klipper, korganizer reminder deamon and a couple of others.

I cannot reproduce bug 333595 with the directives given.
For instance my Alt-tab is working after closing 1 of 2 windows open, etc.
Comment 3 Thomas Lübking 2014-04-24 19:07:41 UTC
can you also please attach the output of
   qdbus-qt4 org.kde.kwin /KWin supportInformation
Comment 4 Maxime Deraspe 2014-04-24 19:20:57 UTC
method QStringList org.kde.KWin.activeEffects()
method Q_NOREPLY void org.kde.KWin.cascadeDesktop()
method void org.kde.KWin.circulateDesktopApplications()
method bool org.kde.KWin.compositingActive()
method QString org.kde.KWin.compositingNotPossibleReason()
method bool org.kde.KWin.compositingPossible()
signal void org.kde.KWin.compositingToggled(bool active)
method QString org.kde.KWin.compositingType()
method int org.kde.KWin.currentDesktop()
method QDBusRawType::ai org.kde.KWin.decorationSupportedColors()
method void org.kde.KWin.doNotManage(QString name)
method Q_NOREPLY void org.kde.KWin.killWindow()
method QStringList org.kde.KWin.listOfEffects()
method void org.kde.KWin.loadEffect(QString name)
method QStringList org.kde.KWin.loadedEffects()
method void org.kde.KWin.nextDesktop()
method bool org.kde.KWin.openGLIsBroken()
method void org.kde.KWin.previousDesktop()
method Q_NOREPLY void org.kde.KWin.reconfigure()
method void org.kde.KWin.reconfigureEffect(QString name)
signal void org.kde.KWin.reinitCompositing()
signal void org.kde.KWin.reloadConfig()
method bool org.kde.KWin.setCurrentDesktop(int desktop)
method void org.kde.KWin.showWindowMenuAt(qlonglong winId, int x, int y)
method bool org.kde.KWin.startActivity(QString)
method bool org.kde.KWin.stopActivity(QString)
method QString org.kde.KWin.supportInformation()
method QString org.kde.KWin.supportInformationForEffect(QString name)
method Q_NOREPLY void org.kde.KWin.toggleCompositing()
method void org.kde.KWin.toggleEffect(QString name)
method Q_NOREPLY void org.kde.KWin.unclutterDesktop()
method void org.kde.KWin.unloadEffect(QString name)
method bool org.kde.KWin.waitForCompositingSetup()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()
Comment 5 Thomas Lübking 2014-04-24 19:33:13 UTC
entire "qdbus-qt4 org.kde.kwin /KWin supportInformation", please - we know the interfaces ;-)
Comment 6 Maxime Deraspe 2014-04-24 19:42:09 UTC
lol sorry about this, my bad.

http://goo.gl/2GRy3M
Comment 7 Thomas Lübking 2014-04-24 19:54:29 UTC
Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 2
Screen 0 Geometry: 0,0,1920x1080
Screen 1 Geometry: 1920,0,1920x1080

focusPolicy: 0
nextFocusPrefersMouse: false
separateScreenFocus: false
focusPolicyIsReasonable: true
focusStealingPreventionLevel: 1

-----------

It's NOT a multihead issue, normal click-to-focus and default focus stealing prevention.

From your description, it seems that the notifications are the culprit?
Can you try working w/o plasma-desktop or the notification plasmoid for a while and see whether this still happens (to confirm the idea)

   kquitapp plasma-desktop

will shut down the entire desktop (wallpaper, plasmoids and stuff, but not the window manager -alt+tab- or other applications)

   plasma-desktop

will restart it (both can be run from Alt+F2, but i'd keep a konsole open ;-)
Comment 8 Maxime Deraspe 2014-04-25 14:57:59 UTC
It seems to solve the problem !

Is there a log somewhere for the kapps running  I can look at ? 

I could also try to stop them 1 at a time, to see if I can pinpoint the guilty one.
Comment 9 Thomas Lübking 2014-04-25 15:19:54 UTC
"it" being to shutdown plasma-desktop?

That would be bug #318350, also see bug #311467 and bug #327438

*** This bug has been marked as a duplicate of bug 318350 ***