[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: KWallet::openWallet and 0-WinId ?
From:       Martin_Gräßlin <mgraesslin () kde ! org>
Date:       2017-05-02 8:04:34
Message-ID: 2196c0e629edd970c9c7dce02bb2bfa3 () kde ! org
[Download RAW message or body]

Am 2017-05-01 17:33, schrieb Martin Koller:
> Hi,
> 
> the Wallet::openWallet() documentation says for the WinId argument:
> "The window id to associate any dialogs with. You can pass 0 if you
> don't have a window the password dialog should associate with."
> 
> However passing 0 gives a runtime warning
>         qDebug() << "Pass a valid window to 
> KWallet::Wallet::openWallet().";
> 
> So what is correct ?
> 
> openWallet() is used by a lot PIM resources and all these show the
> warning when akonaditray is not registered
> on the DBUS (which means winId is passed as 0)

Simply put: no sane window manager will pass focus to KWallet if it 
doesn't have a window which it can be associated with.

This is the reason why KWallet opens behind (!) other windows and 
unfocused in Plasma when Akonadi tries to interact with it.

So at least in reality allowing 0 is not correct.

Cheers
Martin
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic