Bug 339208 - osd window can get focus, but it should not
Summary: osd window can get focus, but it should not
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 12:11 UTC by Alexander
Modified: 2014-09-26 16:20 UTC (History)
3 users (show)

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 Alexander 2014-09-19 12:11:08 UTC
an OSD window, for example the one showing keyboard layout switch may get focus if kwin is configured to focus under mouse. it probably may also get focus if you click on it, not tested.
example OSD window: http://img.5cm.ru/view/i4/yAuK.png

this is a problem , because if the focus switch happens which user types, the typed text starts goind to OSD, not to the window user typed initialy to, which is not the expected behaivour.

Reproducible: Always

Steps to Reproduce:
1.configure kwin to focus windows directly under the mouse pointer
2.configure >1 keyboard layout
3.open a program, allowing you to type anything in a text field, like Kate
4.place you mouse in the area, where OSD appears, usually center of the screen
5.type some text, switch layout using keyboard shortcut and type some text again shortly after the switch

Actual Results:  
only the first part of the typed text appears in the text area

Expected Results:  
all of the typed text should appear in the text area

this happens not only when kwin is configured to focus under the mouse, it's just easier to reproduce it this way. if you set to focus under mouse with a delay you still may get a problem, when you switch to a window, where you want to type text and instantly switch a layout.
user should also be able to click "through" osd, because preventing user from clicking for a ~3 perion from a certain area of the screen, covered by osd is strange.
Comment 1 David Edmundson 2014-09-22 21:32:47 UTC
$ xwininfo -wm

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x200000b "Plasma"

  Window manager hints:
      Client accepts input or input focus: Yes
      Initial state is Normal State
      Displayed on desktop 0
      Window type:
          Notification
      Window state:
          Skip Taskbar
          Skip Pager
      Process id: 556
Comment 2 Martin Flöser 2014-09-23 05:26:06 UTC
I added code to Plasma.Dialog to make it click-through. One just need to set it ;-)
Comment 3 Marco Martin 2014-09-26 16:20:54 UTC
Git commit c380ca5653bc41f7832f33aef7ae31563ab85992 by Marco Martin.
Committed on 26/09/2014 at 16:17.
Pushed by mart into branch 'master'.

osd is outputOnly

M  +1    -0    lookandfeel/contents/osd/Osd.qml

http://commits.kde.org/plasma-workspace/c380ca5653bc41f7832f33aef7ae31563ab85992