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

List:       kde-bugs-dist
Subject:    [dolphin] [Bug 221107] External konsole window opened without focus
From:       Thomas Lübking <thomas.luebking () gmail ! com>
Date:       2013-07-28 23:17:08
Message-ID: bug-221107-17878-fzSQccm9G3 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=221107

--- Comment #21 from Thomas Lübking <thomas.luebking@gmail.com> ---
(In reply to comment #20)
> Could it be that it's Konsole's fault?

There's no "fault" - and certainly not the one of the subprocess.
To kwin the scenario looks like konsole was trying to steal the focus from
(foreign/unrelated) dolphin, what's therefore denied.

Unless you have access to the spawned windows id (to set some relation hint,
like altering the client leader or even make konsole a transient for dolphin -
depending on what is intended) my only idea was to "fake" what the newly
instanciated process probably "accidentally" does to workaround the problem:
delay the call, ie bind the action to a slot

::deferSpawningKonsole() {
   m_konsoleSpawnTimer->start(300); // 400? 500?
}

This solves tow issues for one:
1. The user probably meanwhile released the key "for a while" when the konsole
window finally appears, thus it should be granted the focus.
2. You won't run into "issues" caused by automatic key repetition (ie. keeping
Shift+F4 pressed and spawn a hundred konsole windows) - if the delay is above
the keyboards repeat rate.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

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