Bug 401711 - motif/nedit: open file -> new window is not activated
Summary: motif/nedit: open file -> new window is not activated
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.12.6
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 19:16 UTC by Ivan S. J.
Modified: 2018-12-03 19:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan S. J. 2018-12-03 19:16:52 UTC
SUMMARY
When opening a file in a new window in Nedit the new window is not activated


STEPS TO REPRODUCE
1. Install/build Nedit 5.7
2. Start Nedit
3. Disable tabbed editing (Preferences -> Default preferences -> Tabbed editing -> Disable "Open file in New tab")
4. Open "Open file" dialog (ctrl-O)
5. Select any file to open
6. [enter]

Other Motif applications that open new windows based on a Open File dialog may exhibit the same problem.

OBSERVED RESULT
The Open File dialog disappears, the original nedit window is activated, and the window with the new file is not activated or brought to top. Sometimes it is even hidden behind other windows.

EXPECTED RESULT
The new editing window should be activated and brought to top.

SOFTWARE/OS VERSIONS
OpenSUSE Leap 15.0
KDE Plasma Version: 5.12.6 ?
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4

ADDITIONAL INFORMATION
When pressing [enter] in file dialog Nedit unmaps the file dialog and then creates a new window. I suspect that kwin tries to activate the original edit window and cannot handle that a new window (even from the same application) is created+mapped while doing that. Changing "focus stealing prevention" to "none" has no effect.

This problem did not exist with kwin-4.11.2
Comment 1 Martin Flöser 2018-12-03 19:41:45 UTC
The application needs to set proper transient for hints.