Bug 345513 - Notes widget on panel prevents focus on other applications, it takes two mouse clicks to get focus
Summary: Notes widget on panel prevents focus on other applications, it takes two mous...
Status: RESOLVED DUPLICATE of bug 410612
Alias: None
Product: knotes
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://youtu.be/QLk_CdmNlek
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 13:55 UTC by Florian
Modified: 2021-01-06 03:07 UTC (History)
3 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 Florian 2015-03-25 13:55:32 UTC
When I enable OpenGL, I have to click twice on a window to finally get the focus. For example, I start a terminal (Konsole), but before I can type commands, I have to click two times on the Konsole window, before the focus finally is on that window and my keyboard input is visible in the terminal.

This is not limited to Konsole, but also applies to other applications, e. g. LibreOffice. See YouTube link provided for a demonstration.

Reproducible: Always

Steps to Reproduce:
1. Enable OpenGL (any version)
2. Open Konsole
3. Type "test"

Actual Results:  
"test" does not show up in the terminal, as the window has no focus.

Expected Results:  
After starting Konsole, focus should be immediately on that window. If window opens in background, it should only take one click to get focus on it.

- Dell Latitude E7440
- Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
- Intel Haswell-ULT Integrated Graphics Controller
- 8 GB Memory
- Linux Kernel 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64
- KDE Platform Version 4.13.3
- Display Resolution set to 1920x1080 @ 60.0 Hz
Comment 1 Florian 2015-03-25 13:57:07 UTC
Youtube Link: https://youtu.be/QLk_CdmNlek
Comment 2 Florian 2015-03-25 14:08:37 UTC
$ dpkg -l|grep ^ii|grep opengl|awk '{print $2"\t"$3;}'

libqt4-opengl:amd64     4:4.8.5+git192-g085f851+dfsg-2ubuntu4
libqt4-opengl:i386      4:4.8.5+git192-g085f851+dfsg-2ubuntu4
libqt4-opengl-dev       4:4.8.5+git192-g085f851+dfsg-2ubuntu4
Comment 3 Thomas Lübking 2015-03-25 14:27:40 UTC
> When I enable OpenGL
You mean this only (!) affects OpenGL compositing, but not eg. XRender compositing? (Let alone the uncomposited case)

Does this also imply EGL compositing (but not GLX)?

Please attach the output of "qdbus org.kde.KWin /KWin supportInformation"
Comment 4 Florian 2015-03-27 06:59:23 UTC
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 4.11.11
KDE SC version (runtime): 4.13.3
KDE SC version (compile): 4.13.2
Qt Version: 4.8.6

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
showDesktopIsMinimizeAll: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glDirect: true
glStrictBinding: false
glStrictBindingFollowsDriver: true
glLegacy: false
glCoreProfile: true
glPreferBufferSwap: 101

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1
Screen 0 Geometry: 0,0,1920x1080

Decoration
==========
Current Plugin: kwin3_oxygen
Shadows: yes
Alpha: yes
Announces Alpha: yes
Tabbing: yes
Frame Overlap: no
Blur Behind: no

Compositing
===========
Qt Graphics System: native
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
OpenGL version string: 3.3 (Core Profile) Mesa 10.1.3
OpenGL shading language version string: 3.30
Driver: Intel
GPU class: Haswell
OpenGL version: 3.3
GLSL version: 3.30
Mesa version: 10.1.3
X server version: 1.15.1
Linux kernel version: 3.13
Direct rendering: yes
Requires strict binding: no
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
kwin4_effect_zoom
kwin4_effect_slidingpopups
kwin4_effect_login
kwin4_effect_wobblywindows
kwin4_effect_coverswitch
kwin4_effect_minimizeanimation
kwin4_effect_screenshot
kwin4_effect_slide
kwin4_effect_desktopgrid
kwin4_effect_translucency
kwin4_effect_magiclamp
kwin4_effect_maximize
kwin4_effect_fade
kwin4_effect_highlightwindow
kwin4_effect_taskbarthumbnail
kwin4_effect_dialogparent
kwin4_effect_presentwindows
kwin4_effect_blur
kwin4_effect_logout
kwin4_effect_dashboard
kwin4_effect_screenedge
kwin4_effect_startupfeedback
kwin4_effect_kscreen

Currently Active Effects:
-------------------------
kwin4_effect_blur

Effect Settings:
----------------
kwin4_effect_zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

kwin4_effect_slidingpopups:
fadeInTime: 250
fadeOutTime: 250

kwin4_effect_login:

kwin4_effect_wobblywindows:
stiffness: 0.15
drag: 0.8
moveFactor: 0.1
xTesselation: 20
yTesselation: 20
minVelocity: 0
maxVelocity: 1000
stopVelocity: 0.5
minAcceleration: 0
maxAcceleration: 1000
stopAcceleration: 0.5
moveEffectEnabled: true
openEffectEnabled: false
closeEffectEnabled: false
moveWobble: true
resizeWobble: true

kwin4_effect_coverswitch:
animationDuration: 200
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 900
primaryTabBox: true
secondaryTabBox: false

kwin4_effect_minimizeanimation:

kwin4_effect_screenshot:

kwin4_effect_slide:

kwin4_effect_desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

kwin4_effect_translucency:

kwin4_effect_magiclamp:
animationDuration: 250

kwin4_effect_maximize:

kwin4_effect_fade:

kwin4_effect_highlightwindow:

kwin4_effect_taskbarthumbnail:

kwin4_effect_dialogparent:

kwin4_effect_presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0
dragToClose: false

kwin4_effect_blur:
blurRadius: 12
cacheTexture: true

kwin4_effect_logout:
useBlur: true

kwin4_effect_dashboard:
brightness: 0.5
saturation: 0.5
blur: false

kwin4_effect_screenedge:

kwin4_effect_startupfeedback:

kwin4_effect_kscreen:
Comment 5 Florian 2015-03-27 07:09:54 UTC
Hmm.. it turns out that it doesn't seem to be related to OpenGL... I just noted this after switching from XRender to OpenGL. However, I switched back, restarted X, rebooted, but the issue still exists. I even turned off desktop effects completely and rebooted, still same issue.

So probably this is not OpenGL related, but I have no idea what else I could test - any ideas?
Comment 6 Florian 2015-03-27 07:30:52 UTC
Probably one more hint: When I open a terminal window (Konsole), and then start another Konsole or LibreOffice Writer instance from there, then focus is available immediately. However, if I start Konsole or LibreOffice Writer from the Kickoff Application Launcher or Krunner, then I have no focus until I click on the window twice (as shown in the video).
Comment 7 Florian 2015-03-27 07:39:15 UTC
OK, I think I have found the problem: I added the sticky notes widget to my main panel. This seems to be the reason for my problem. When I remove the Notes widget from the panel, everything works fine again.

This is reproducable everytime:

- Right click on main panel
- Unlock widgets
- Add widgets
- Add Notes widget to panel
- Lock widgets

Result: Need to click twice on a window to get focus.
Workaround: Do not use Notes widget in panel

So I think this is a bug related to the panel or the notes widget, right?
Comment 8 Martin Flöser 2015-03-27 07:49:22 UTC
@Marco: any ideas?
Comment 9 Florian 2015-03-27 08:08:57 UTC
dpkg -l|grep ^ii|grep knotes|awk '{print $2"\t"$3;}'

knotes  4:4.13.3-0ubuntu0.1
Comment 10 Nate Graham 2021-01-06 03:07:46 UTC

*** This bug has been marked as a duplicate of bug 410612 ***