Bug 112927 - Get focus automaticlally back to main window
Summary: Get focus automaticlally back to main window
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 08:50 UTC by kdebugs
Modified: 2012-11-01 15:50 UTC (History)
2 users (show)

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 kdebugs 2005-09-20 08:50:33 UTC
Version:           4.4 (using KDE 3.4.2 Level "b" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.9-default

Hi,

When I open an text file on an ftp server a message windows with an progress bar appears, which gets the focus. When the tranfer is completed the focus should get back to the main window.
Comment 1 Christoph Cullmann 2012-11-01 01:55:20 UTC
Does this still happen with current KDE versions? Thought there are no longer such popups.
Comment 2 Matt Jones 2012-11-01 03:32:15 UTC
I can confirm that this issue still exists in kate on Fedora 17 (kate version 4.9.2).  The pop-up only occurs when opening and closing remote files.  I experience it frequently when editing files remotely via sftp.  I run kate under Gnome rather than KDE I don't know if that would have any impact.
Comment 3 Christoph Cullmann 2012-11-01 12:33:25 UTC
ok, then reopen ;)
Comment 4 Matt Jones 2012-11-01 14:18:20 UTC
To add some further clarification.  The pop-up progress bar for remote files seems to be time based.  If I open a small file that only takes a few milliseconds to open then no pop-up happens and there is no focus issue.  However, if I open larger files via sftp (or any file on a slow connection) a pop-up dialog appears after a second or so and then I run into the focus problem.  The save process for remote files has a similar behavior.  I personally notice it more with saving files because that process almost always seems take a few seconds causing a pop-up with the same focus issue while opening files it is only really with large files.
Comment 5 Christoph Cullmann 2012-11-01 15:50:21 UTC
Git commit 66167dc51deeb218d099f9cc0fa1cb1fc05a518e by Christoph Cullmann.
Committed on 01/11/2012 at 16:49.
Pushed by cullmann into branch 'master'.

inline display that a file is still loading
threshold: show it after one second, if still not done, to avoid ugly flicker
Related: bug 189158
no dialogs, no focus loss ;)

M  +0    -3    kate/app/katedocmanager.cpp
M  +24   -1    part/document/katedocument.cpp
M  +10   -0    part/document/katedocument.h

http://commits.kde.org/kate/66167dc51deeb218d099f9cc0fa1cb1fc05a518e