Bug 396969 - Moving windows to another screen places it in wrong location
Summary: Moving windows to another screen places it in wrong location
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: xrandr (show other bugs)
Version: 5.13.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-29 21:24 UTC by Mariusz
Modified: 2021-12-06 04:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Window position after moving from another screen (1.12 MB, image/png)
2018-07-29 21:24 UTC, Mariusz
Details
kscreen setup which works (58.44 KB, image/png)
2018-09-17 19:19 UTC, Mariusz
Details
kscreen setup which doesn't work (58.94 KB, image/png)
2018-09-17 19:19 UTC, Mariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz 2018-07-29 21:24:09 UTC
Created attachment 114200 [details]
Window position after moving from another screen

I have a 2 display setup with nvidia gpu. Monitors have different resolutions, the right one is my main display (screen 1). The other one (screen 2) is on the left side of my main monitor.

If I have a window opened on the screen 1, after RMB on windows title -> Move To Screen 2, active window get moved but location on target screen is incorrect. Only half window is visible. Please see attached image.

If you need any other info, please let me know, I'll provide them.
Comment 1 Martin Flöser 2018-07-30 06:00:47 UTC
Please provide the output of qdbus org.kde.KWin /KWin supportInformation
Comment 2 Mariusz 2018-07-30 19:57:30 UTC
(In reply to Martin Flöser from comment #1)
> Please provide the output of qdbus org.kde.KWin /KWin supportInformation

There you go, sir:
==========================

Version
=======
KWin version: 5.13.3
Qt Version: 5.11.1
Qt compile version: 5.11.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_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: 12000000
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: 2
gridUnit: 10
font: Sans Serif,9,-1,5,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

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

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: true
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: 0
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: false
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 0
glSmoothScale: 1
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: true
glPreferBufferSwap: 0
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: 2

Screen 0:
---------
Name: DVI-D-0
Geometry: 1440,0,1920x1200
Scale: 1
Refresh Rate: 59.9502

Screen 1:
---------
Name: HDMI-0
Geometry: 0,0,1440x900
Scale: 1
Refresh Rate: 59.8874


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1050/PCIe/SSE2
OpenGL version string: 3.1.0 NVIDIA 390.77
OpenGL platform interface: GLX
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 390.77
GPU class: Unknown
OpenGL version: 3.1
GLSL version: 1.40
X server version: 1.20
Linux kernel version: 4.17.9
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:
---------------
zoom
kwin4_effect_windowaperture
kwin4_effect_translucency
kwin4_effect_fade
kwin4_effect_maximize
kwin4_effect_logout
kwin4_effect_dialogparent
kwin4_effect_morphingpopups
kwin4_effect_login
kwin4_effect_frozenapp
slidingpopups
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_windowaperture:

kwin4_effect_translucency:

kwin4_effect_fade:

kwin4_effect_maximize:

kwin4_effect_logout:

kwin4_effect_dialogparent:

kwin4_effect_morphingpopups:

kwin4_effect_login:

kwin4_effect_frozenapp:

slidingpopups:
fadeInTime: 30
fadeOutTime: 50

screenshot:

minimizeanimation:

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

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

coverswitch:
animationDuration: 40
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: 30
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 3 Mariusz 2018-09-17 19:18:39 UTC
Funny thing is, if I set in kscreen my main monitor on the left and secondary on the right, then moving windows between screen works as expected. However, if I set my main monitor to be on the right side and secondary on on the left, then switching windows between screens doesn't work properly.
Comment 4 Mariusz 2018-09-17 19:19:36 UTC
Created attachment 115049 [details]
kscreen setup which works
Comment 5 Mariusz 2018-09-17 19:19:59 UTC
Created attachment 115050 [details]
kscreen setup which doesn't work
Comment 6 Mariusz 2018-11-12 14:58:02 UTC
It looks like that this issue happens only if I have panel set to the left edge of my primary screen and secondary screen is on the same (left) side.

If I set panel back to bottom edge, that moving windows between screens using shortcuts works like a charm.
Comment 7 kde.org 2021-11-06 12:13:50 UTC
This bug report is quite old. Can you please confirm, that the issue still persists with KDE 5.23?
Comment 8 Bug Janitor Service 2021-11-21 04:40:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2021-12-06 04:39:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!