Bug 394812 - Wrong placement of animation when minimizing windows on HiDPI
Summary: Wrong placement of animation when minimizing windows on HiDPI
Status: RESOLVED DUPLICATE of bug 407458
Alias: None
Product: plasmashell
Classification: Plasma
Component: Icons-only Task Manager (show other bugs)
Version: 5.12.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-28 23:12 UTC by elman
Modified: 2019-12-09 20: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 elman 2018-05-28 23:12:32 UTC
I'm using Icons-only Task Manager with Minimize Animation. I have 15" 4K display with scaling 2.0. When I minimize application, animation ends at the location as if I had scaling 1.0. Eg. when my task manager icon is at 2100x300, animation ends at 1050x150.

Version
=======
KWin version: 5.12.5
Qt Version: 5.10.1
Qt compile version: 5.10.1
XCB compile version: 1.13

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: 11906000
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: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 0
gridUnit: 20
font: Noto Sans,10,-1,5,57,0,0,0,0,0,Medium
smallSpacing: 5
largeSpacing: 20

Platform
==========
Name: KWin::X11StandalonePlatform

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
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
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: 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
glSmoothScale: 2
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: true
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 101
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
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:
---------
Name: eDP1
Geometry: 0,0,3840x2160
Scale: 1
Refresh Rate: 59.9966


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2) 
OpenGL version string: 4.5 (Core Profile) Mesa 18.0.4
OpenGL platform interface: GLX
OpenGL shading language version string: 4.50
Driver: Intel
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
Mesa version: 18.0.4
X server version: 1.19.6
Linux kernel version: 4.16.12
Direct rendering: Requires strict binding: yes
GLSL shaders:  yes
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
kwin4_effect_login
kwin4_effect_translucency
kwin4_effect_morphingpopups
kwin4_effect_fade
kwin4_effect_windowaperture
kwin4_effect_dialogparent
kwin4_effect_maximize
dimscreen
kwin4_effect_logout
kwin4_effect_frozenapp
kwin4_effect_scalein
slidingpopups
wobblywindows
slide
screenshot
minimizeanimation
flipswitch
desktopgrid
coverswitch
colorpicker
presentwindows
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

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

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

kwin4_effect_login:

kwin4_effect_translucency:

kwin4_effect_morphingpopups:

kwin4_effect_fade:

kwin4_effect_windowaperture:

kwin4_effect_dialogparent:

kwin4_effect_maximize:

dimscreen:

kwin4_effect_logout:

kwin4_effect_frozenapp:

kwin4_effect_scalein:

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

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

slide:

screenshot:

minimizeanimation:

flipswitch:
tabBox: false
tabBoxAlternative: false
duration: 200
angle: 30
xPosition: 0.33000001311302185
yPosition: 1
windowTitle: true

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

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

colorpicker:

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

highlightwindow:

blur:
blurRadius: 12
cacheTexture: true

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 1 Eike Hein 2018-05-29 10:39:40 UTC
Interesting. Currently I can't reproduce. I have a 4k display and use 2x scaling as well, and it's fine. We both have a single-screen setup, too.

Your debug output says this for your screen, though:

> Scale: 1

How did you configure scaling?
Comment 2 David Edmundson 2018-05-29 10:54:06 UTC
@Eike 

That scale line is for wayland scaling in Kwin. On X it will be always 1
Comment 3 Eike Hein 2018-05-29 11:05:58 UTC
Thx. In that case, I currently don't have an idea.
Comment 4 elman 2018-05-29 11:56:19 UTC
I changed it in System Settings / Display and Monitor / Displays / Scale Display.

I also have following exports set so that also GTK apps scale well:

GDK_DPI_SCALE 0.5
GDK_SCALE 2
PLASMA_USE_QT_SCALING 1
QT_AUTO_SCREEN_SCALE_FACTOR 0
QT_SCREEN_SCALE_FACTORS 'eDP1=2;DP1=2;DP2=2;DP3=2;HDMI1=2;HDMI2=2;VIRTUAL1=2;'
Comment 5 David Edmundson 2018-05-29 12:23:51 UTC
PLASMA_USE_QT_SCALING 1

That's deliberately not set by us on X.
Comment 6 Nate Graham 2018-05-29 16:47:53 UTC
Perhaps we should keep this bug open to track fixing the issue so we can eventually use Qt scaling?
Comment 7 elman 2018-05-29 22:54:53 UTC
Removing PLASMA_USE_QT_SCALING 1 actually worked and animation was placed correctly.

However System Tray icons were smaller than expected, so for now I'm keeping PLASMA_USE_QT_SCALING 1.

Thanks anyway.
Comment 8 Nate Graham 2019-06-23 15:15:49 UTC
We have a path forward for this now.
Comment 9 David Edmundson 2019-06-23 15:18:06 UTC

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