Don't bind ShellClient::acceptsFocus to whether the window is shown
ClosedPublic

Authored by graesslin on Sep 12 2016, 9:05 AM.

Details

Summary

A not shown window may accept focus (e.g. when minimized). Given that
the condition was wrong and broke when making minimized windows not
shown.

This change takes the idea of not passing focus to a closing or unmapped
window directly into acceptsFocus. Which also means that this condition
now works for xdg_shell windows.

BUG: 368673

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 6635.Sep 12 2016, 9:05 AM
graesslin retitled this revision from to Don't bind ShellClient::acceptsFocus to whether the window is shown.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptSep 12 2016, 9:05 AM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
bshah accepted this revision.Sep 12 2016, 9:08 AM
bshah edited edge metadata.
This revision is now accepted and ready to land.Sep 12 2016, 9:08 AM
This revision was automatically updated to reflect the committed changes.