Bug 408382 - Desktop focus rules when pressing the meta key with multiple monitors
Summary: Desktop focus rules when pressing the meta key with multiple monitors
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.15.5
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-06 13:48 UTC by nickagodridge2
Modified: 2019-06-06 13:54 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 nickagodridge2 2019-06-06 13:48:03 UTC
SUMMARY
Looking online, Kwin seems to ignore primary/secondary monitor rules when deciding which monitor to open a windows, and instead chooses which display to open a window in by which display is in focus via mouse.  However, opening an application via the app menu through the meta key seems to ignore this rule, either because it switches focus to the other desktop (strange because it does not even have a panel) or some other type of focus rule in engaged when the meta key is pressed.  Applications opened via keyboard shortcut or Krunner open as expected, however anything opened via application menu is sent to the "wrong" monitor

STEPS TO REPRODUCE
1. With two monitors connected in extend mode, move mouse into monitor where the panel lives
2. Open the application menu, either via mouse or with the meta key
3. Open any application

OBSERVED RESULT
Application window is sent to the monitor that is not in focus

EXPECTED RESULT
Application is opened on the desktop that was in focus when the application menu was opened, either via mouse or meta key.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 30
(available in About System)
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
Comment 1 nickagodridge2 2019-06-06 13:49:59 UTC
just to clarify, this behavior occurs regardless of whether the application menu is opened with meta or a mouse click
Comment 2 Vlad Zahorodnii 2019-06-06 13:54:31 UTC
> seems to ignore primary/secondary monitor rules when deciding
Yes, that's correct.

If you don't like this behavior, "Active screen follows mouse" option may be very helpful (it's located under Window management, Window behavior).