Bug 419385 - Windows snapped to side edges do not show the border of the side snapped
Summary: Windows snapped to side edges do not show the border of the side snapped
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.18.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-29 17:24 UTC by Michael D
Modified: 2024-04-25 13:31 UTC (History)
2 users (show)

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


Attachments
Video showing issue (2.12 MB, video/mp4)
2020-03-30 11:31 UTC, Michael D
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D 2020-03-29 17:24:41 UTC
I've set the breeze decoration option "allow resizing of maximized windows from window edges" which allows the border to show when maximizing windows. It also seems to show top and bottom borders when snapping to sides. However, the border of the side snapped does not show--apparently the snapping does not take into account the window's side border. I'm guessing it should, especially when the option to allow resizing of maximized windows is checked.

On my set-up this is very obvious since my window borders are a different color from the window background.
Comment 1 Vlad Zahorodnii 2020-03-30 10:58:39 UTC
I'm not sure that I understand what seems to be the problem. Could you please attach a screenshot to this bug report?

It would be also nice to have the output of qdbus org.kde.KWin /KWin supportInformation :-)
Comment 2 Michael D 2020-03-30 11:31:45 UTC
Created attachment 127104 [details]
Video showing issue

Here's a video of the issue.
Comment 3 Michael D 2020-03-30 11:33:50 UTC
[michael@michael-pc ~]$ qdbus org.kde.KWin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. https://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 https://paste.kde.org instead of pasting into support threads.

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

Version
=======
KWin version: 5.18.3
Qt Version: 5.14.1
Qt compile version: 5.14.1
XCB compile version: 1.14

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_EGL_STREAMS: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 12007000
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: 
Plugin recommends border size: None
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 
decorationButtonsRight: 5
borderSize: 3
gridUnit: 10
font: Noto Sans,10,-1,0,50,0,0,0,0,0,Regular
smallSpacing: 2
largeSpacing: 10

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

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 3
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: false
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5015
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 0
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 4
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 14
commandAll2: 3
commandAll3: 10
keyCmdAllModKey: 16777250
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: 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: HDMI1
Geometry: 0,0,2560x1440
Scale: 1
Refresh Rate: 59.95


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.2
OpenGL platform interface: GLX
OpenGL shading language version string: 4.60
Driver: Intel
GPU class: Unknown
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 20.0.2
X server version: 1.20.7
Linux kernel version: 5.5.13
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:
---------------
kwin4_effect_sessionquit
slidingpopups
kwin4_effect_login
kwin4_effect_logout
slide
screenshot
kwin4_effect_windowaperture
desktopgrid
colorpicker
kwin4_effect_squash
kwin4_effect_fadingpopups
kwin4_effect_morphingpopups
kwin4_effect_maximize
kwin4_effect_scale
kwin4_effect_frozenapp
presentwindows
kwin4_effect_dialogparent
highlightwindow
blur
contrast
startupfeedback
screenedge
kscreen

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

Effect Settings:
----------------
kwin4_effect_sessionquit:
isActiveFullScreenEffect: false

slidingpopups:
slideInDuration: 240
slideOutDuration: 400

kwin4_effect_login:
isActiveFullScreenEffect: false

kwin4_effect_logout:
isActiveFullScreenEffect: false

slide:
duration: 800
horizontalGap: 45
verticalGap: 20
slideDocks: false
slideBackground: false

screenshot:

kwin4_effect_windowaperture:
isActiveFullScreenEffect: false

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

colorpicker:

kwin4_effect_squash:
isActiveFullScreenEffect: false

kwin4_effect_fadingpopups:
isActiveFullScreenEffect: false

kwin4_effect_morphingpopups:
isActiveFullScreenEffect: false

kwin4_effect_maximize:
isActiveFullScreenEffect: false

kwin4_effect_scale:
isActiveFullScreenEffect: false

kwin4_effect_frozenapp:
isActiveFullScreenEffect: false

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

kwin4_effect_dialogparent:
isActiveFullScreenEffect: false

highlightwindow:

blur:

contrast:

startupfeedback:
type: 1

screenedge:

kscreen:
Comment 4 Michael D 2020-03-30 11:34:49 UTC
Would have helped if I had posted it to paste.kde.org, as the instructions said but which I did not read...sorry.
Comment 5 Nate Graham 2020-04-15 00:35:30 UTC
This might be a Breeze issue rather than a KWin issue. Not 100% sure.
Comment 6 Michael D 2020-04-24 06:53:06 UTC
I just noticed that in a multi-monitor set-up with screen1 on the left and screen2 on the right, snapping on the right of screen1 causes the window border to appear on the left of screen2, which is obviously not desirable.
Comment 7 Michael D 2020-04-24 06:54:50 UTC
Sorry! It does not (in regard to my previous comment). That only happens with previously snapped windows of course. On a multi-monitor setup, snapping takes into account the window border, as it should.
Comment 8 David Edmundson 2024-04-25 13:31:13 UTC
This appears to work in Plasma 6.0 and probably before.