Bug 376399

Summary: Window switcher fails to update UI while cycling through windows
Product: [Plasma] kwin Reporter: Aitor <mail>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: 5.9.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: KWin support information

Description Aitor 2017-02-12 13:36:31 UTC
After the plasma 5.9 upgrade (not fixed in 5.9.1), window switchers others than "coverswitch" and "flipswitch" fail to update the UI as I cycle through windows pressing "Alt+Tab". The switcher does change to the correct window according to de number of times I press the shortcut, but the UI fails to highlight the window I will switch to. 

System information:
Plasma desktop: 5.9.1
QT Version:     5.7.1
Video driver:   Intel i915
Kernel:         4.9.8 x86_64
Distro:         OpenSuse Tumbleweed
Comment 1 Martin Flöser 2017-02-12 19:30:34 UTC
Please provide the output of:
qdbus org.kde.KWin /KWin supportInformation
Comment 2 Aitor 2017-02-12 19:59:18 UTC
Created attachment 104010 [details]
KWin support information

This is the output from `qdbus org.kde.KWin /KWin supportInformation` command.
Comment 3 Martin Flöser 2017-02-12 20:06:52 UTC
Información sobre KWin:
La siguiente información se debe usar al solicitar ayuda, por ejemplo en http://forum.kde.org.
Proporciona información sobre la instancia que se ejecuta actualmente, qué opciones se están usando,
qué controlador OpenGL y qué efectos están activos.
Por favor, envíe la información proporcionada a continuación de este texto de introducción a un
servicio de bandeja de pegar como http://paste.kde.org en lugar de pegarla en hilos de ayuda.

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

Version
=======
KWin version: 5.9.1
Qt Version: 5.7.1
Qt compile version: 5.7.1
XCB compile version: 1.12

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11901000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 1, 2, 9, 7
decorationButtonsRight: 0, 4, 5
borderSize: 3
gridUnit: 8
font: Noto Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 8

Options
=======
focusPolicy: 1
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 750
delayFocusInterval: 300
shadeHover: true
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: true
rollOverDesktops: false
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5002
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
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: 16777250
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
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 2
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: true
cursorPushBackDistance: 1x1
timeThreshold: 500
reActivateThreshold: 750
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:
---------
Name: LVDS1
Geometry: 0,0,1280x800
Refresh Rate: 59.9821


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset 
OpenGL version string: 2.1 Mesa 13.0.4
OpenGL platform interface: EGL
OpenGL shading language version string: 1.20
Driver: Intel
GPU class: i965
OpenGL version: 2.1
GLSL version: 1.20
Mesa version: 13.0.4
X server version: 1.19.1
Linux kernel version: 4.9.8
Direct rendering: 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:
---------------
touchpoints
thumbnailaside
mousemark
lookingglass
dimscreen
slidingpopups
kwin4_effect_login
flipswitch
slideback
slide
screenshot
magiclamp
kwin4_effect_windowaperture
kwin4_effect_translucency
diminactive
desktopgrid
coverswitch
colorpicker
sheet
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_fade
presentwindows
highlightwindow
kwin4_effect_dialogparent
blur
contrast
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
diminactive
blur
contrast

Effect Settings:
----------------
touchpoints:
lineWidth: 1
ringLife: 300
ringSize: 20
ringCount: 2

thumbnailaside:
maxWidth: 400
spacing: 10
opacity: 0.5
screen: -1

mousemark:
width: 2
color: #ff0000

lookingglass:
initialRadius: 400

dimscreen:

slidingpopups:
fadeInTime: 75
fadeOutTime: 125

kwin4_effect_login:

flipswitch:
tabBox: false
tabBoxAlternative: true
duration: 100
angle: 15
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

slideback:

slide:

screenshot:

magiclamp:
animationDuration: 125

kwin4_effect_windowaperture:

kwin4_effect_translucency:

diminactive:
dimPanels: false
dimDesktop: false
dimKeepAbove: false
dimByGroup: true
dimStrength: 25

desktopgrid:
zoomDuration: 150
border: 10
desktopNameAlignment: 0
layoutMode: 1
customLayoutRows: 2
usePresentWindows: true

coverswitch:
animationDuration: 100
animateSwitch: true
animateStart: true
animateStop: true
reflection: true
windowTitle: true
zPosition: 1836
primaryTabBox: true
secondaryTabBox: false

colorpicker:

sheet:
duration: 250

kwin4_effect_morphingpopups:

kwin4_effect_maximize:

kwin4_effect_fade:

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

highlightwindow:

kwin4_effect_dialogparent:

blur:
blurRadius: 14
cacheTexture: true

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 4 Aitor 2017-02-12 20:08:33 UTC
The attachment in my previous comment was using cover and flip switchers which work fine. 
Running the command again after switching back to breeze and informative switchers I've got these differences:
$ sdiff -s 20170212_qdbus_org.kde.KWin_supportInformation.log 20170212_qdbus_org.kde.KWin_supportInformation_with_breeze_and_informative_switchers.log
tabBoxAlternative: true                                       | tabBoxAlternative: false
primaryTabBox: true                                           | primaryTabBox: false
Comment 5 Martin Flöser 2017-02-12 20:10:15 UTC
> OpenGL platform interface: EGL

Egl is not supported on X11, especially not on Intel hardware. It is just too broken. Given that we removed support from it in the configuration module. Please switch back to GLX by manually editing the config file. It is sufficient to just delete the line about EGL and restart the session.

I'm assuming from the experience we had with EGL on Intel that this is the reason for the problem. If it still happens on GLX, please attach a new output of supportInformation and reopen the bug.
Comment 6 Aitor 2017-02-12 20:31:49 UTC
That worked, thanks so much!