You are not logged in.
For like the first 10 mins on startup but sometime after focused windows get thrown to the back, like if I have firefox and dolphin open and focused on dolphin it's thrown to the back and I can only see firefox, same with right click menus and system menus like the start menu and the notifications tray and like the firefox extensions too.
Here is my neofetch for some quick info
.o+` ------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: redacted
`+oooooo: Kernel: 6.0.11-arch1-1
-+oooooo+: Uptime: 59 mins
`/:-:++oooo+: Packages: 1145 (pacman), 6 (flatpak)
`/++++/+++++++: Shell: zsh 5.9
`/++++++++++++++: Resolution: 1920x1080
`/+++ooooooooooooo/` DE: Plasma 5.26.4
./ooosssso++osssssso+` WM: KWin
.oossssso-````/ossssss+` WM Theme: Utterly-Round
-osssssso. :ssssssso. Theme: [Plasma], Breeze [GTK2/3]
:osssssss/ osssso+++. Icons: [Plasma], breeze-dark [GTK2/3]
/ossssssss/ +ssssooo/- Terminal: tmux
`/ossssso+/:- -:/+osssso+- CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) @ 1.100GH
`+sso+:-` `.-/+oso: GPU: NVIDIA GeForce RTX 3050 Ti Mobile
`++:. `-/+/ GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Serie
.` `/ Memory: 3649MiB / 15397MiBOffline
What's your focus policy?
qdbus org.kde.KWin /KWin org.kde.KWin.supportInformationalso is firefox or any of the involved a flatpak installation and can you reproduce with normal repo packages?
Offline
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.26.4
Qt Version: 5.15.7
Qt compile version: 5.15.7
XCB compile version: 1.15
Operation Mode: X11 only
Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes
X11
===
Vendor: The X.Org Foundation
Vendor Release: 12101004
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.kwin.aurorae
Theme: __aurorae__svg__Utterly-Round
Plugin recommends border size: No
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 5, 3, 4
decorationButtonsRight: 2, 6, 0
borderSize: 3
gridUnit: 10
font: FiraCode Nerd Font Mono,10,-1,5,53,0,0,0,0,0,Retina
smallSpacing: 2
largeSpacing: 10
Platform
==========
Name: KWin::X11StandalonePlatform
Cursor
======
themeName: breeze_cursors
themeSize: 24
Options
=======
focusPolicy: 0
xwaylandCrashPolicy:
xwaylandMaxCrashCount: 3
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
activeMouseScreen: true
placement:
activationDesktopPolicy: 0
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 28
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 28
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 28
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777250
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
compositingMode: 1
useCompositing: true
hiddenPreviews: 1
glSmoothScale: 2
glStrictBinding: true
glStrictBindingFollowsDriver: true
glPreferBufferSwap: 101
glPlatformInterface: 1
windowsBlockCompositing: true
latencyPolicy:
renderTimeEstimator:
Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 3
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 4
actionLeft: 0
Screens
=======
Active screen follows mouse: yes
Number of Screens: 1
Screen 0:
---------
Name: eDP-1
Enabled: 1
Geometry: 0,0,1920x1080
Scale: 1
Refresh Rate: 59996
Adaptive Sync: incapable
Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.48, 6.0.11-arch1-1)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.2.3
OpenGL platform interface: GLX
OpenGL shading language version string: 4.60
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 22.2.3
X server version: 1.21.1
Linux kernel version: 6.0.11
Direct rendering: Requires strict binding: yes
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
OpenGL 2 Shaders are used
Loaded Effects:
---------------
colorpicker
outputlocator
blendchanges
screenshot
screenedge
zoom
kwin4_effect_logout
kwin4_effect_sessionquit
kwin4_effect_login
slidingpopups
kwin4_effect_windowaperture
kwin4_effect_translucency
magiclamp
slide
slideback
kwin4_effect_fadingpopups
kwin4_effect_maximize
kwin4_effect_morphingpopups
kwin4_effect_fullscreen
kwin4_effect_fade
kwin4_effect_frozenapp
kwin4_effect_dialogparent
desktopgrid
highlightwindow
overview
windowview
wobblywindows
blur
contrast
startupfeedback
kscreen
Currently Active Effects:
-------------------------
slideback
blur
contrast
Effect Settings:
----------------
colorpicker:
outputlocator:
blendchanges:
screenshot:
screenedge:
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
focusTrackingEnabled: false
textCaretTrackingEnabled: false
focusDelay: 350
moveFactor: 20
targetZoom: 1
kwin4_effect_logout:
pluginId: kwin4_effect_logout
isActiveFullScreenEffect: false
kwin4_effect_sessionquit:
pluginId: kwin4_effect_sessionquit
isActiveFullScreenEffect: false
kwin4_effect_login:
pluginId: kwin4_effect_login
isActiveFullScreenEffect: false
slidingpopups:
slideInDuration: 150
slideOutDuration: 250
kwin4_effect_windowaperture:
pluginId: kwin4_effect_windowaperture
isActiveFullScreenEffect: false
kwin4_effect_translucency:
pluginId: kwin4_effect_translucency
isActiveFullScreenEffect: false
magiclamp:
slide:
horizontalGap: 45
verticalGap: 20
slideDocks: false
slideBackground: true
slideback:
kwin4_effect_fadingpopups:
pluginId: kwin4_effect_fadingpopups
isActiveFullScreenEffect: false
kwin4_effect_maximize:
pluginId: kwin4_effect_maximize
isActiveFullScreenEffect: false
kwin4_effect_morphingpopups:
pluginId: kwin4_effect_morphingpopups
isActiveFullScreenEffect: false
kwin4_effect_fullscreen:
pluginId: kwin4_effect_fullscreen
isActiveFullScreenEffect: false
kwin4_effect_fade:
pluginId: kwin4_effect_fade
isActiveFullScreenEffect: false
kwin4_effect_frozenapp:
pluginId: kwin4_effect_frozenapp
isActiveFullScreenEffect: false
kwin4_effect_dialogparent:
pluginId: kwin4_effect_dialogparent
isActiveFullScreenEffect: false
desktopgrid:
activeView:
gridRows: 1
gridColumns: 2
animationDuration: 300
layout: 1
partialActivationFactor: 0
gestureInProgress: false
showAddRemove: true
desktopNameAlignment: 0
desktopLayoutMode: 0
customLayoutRows: 2
highlightwindow:
overview:
activeView:
animationDuration: 300
layout: 1
ignoreMinimized: false
blurBackground: true
partialActivationFactor: 0
gestureInProgress: false
searchText:
windowview:
activeView:
animationDuration: 300
layout: 1
ignoreMinimized: false
mode: 0
partialActivationFactor: 0
gestureInProgress: false
searchText:
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
moveWobble: true
resizeWobble: true
blur:
contrast:
startupfeedback:
type: 1
kscreen:
Loaded Plugins:
---------------
kwin5_plugin_krunner
kwin5_plugin_nightcolor
Available Plugins:
------------------
kwin5_plugin_buttonrebinds
kwin5_plugin_colord
kwin5_plugin_krunner
kwin5_plugin_nightcolorFirefox isn't flatpak and it happens with everything.
Offline
Try increasing the focusStealingPrevention policy in
kcmshell5 kcm_kwinoptionsmaybe also check in a xev window or so whether spurious clicks/key events happen when you don't think there should be any events.
Last edited by V1del (2022-12-05 18:25:58)
Offline
I just got home and waiting/trying to make it happen again with higher focus steal prevention so I can check with the xev
Offline
It is happening again, weird thing is, I have 3 activity windows, only happening in the default one, and it seems like what's happening is the focused window gets sent to the back, not others sent to the front.
And somehow it has been fixed now.
Offline
Nxt time this happens, run "xprop _NET_WM_STATE" on the invovlved windows and see whether any of them is (technically) _NET_WM_STATE_FULLSCREEN
Offline
Happened again, pulled an xprop on firefox
the result:
_NET_WM_ICON_GEOMETRY(CARDINAL) = 332, 1036, 52, 44
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 5, 5, 28, 5
_NET_FRAME_EXTENTS(CARDINAL) = 5, 5, 28, 5
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "e853931f-a210-407d-b163-0d46bdfb44dd"
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_STATE(ATOM) =
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3800030
bitmap id # of mask for icon: 0x3800037
window id # of group leader: 0x3800001
_GTK_THEME_VARIANT(UTF8_STRING) = "dark"
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 21550
_NET_WM_ICON(CARDINAL) = Icon (128 x 128):
(not shown)
Icon (32 x 32):
<icon info stuff>
Icon (64 x 64):
(not shown)
Icon (16 x 16):
<icon stuff>
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 950, 1003
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 58720302, 58720303
_NET_WM_USER_TIME(CARDINAL) = 4170770
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x380002d
WM_CLIENT_LEADER(WINDOW): window id # 0x3800001
_NET_WM_PID(CARDINAL) = 1624
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "ihateeduroam"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 450 by 120
program specified maximum size: 16384 by 16384
program specified base size: 450 by 120
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "firefoxdeveloperedition"
WM_ICON_NAME(COMPOUND_TEXT) = "Xorg and KDE Plasma problem with windows / Applications & Desktop Environments / Arch Linux Forums — Firefox Developer Edition"
_NET_WM_ICON_NAME(UTF8_STRING) = "Xorg and KDE Plasma problem with windows / Applications & Desktop Environments / Arch Linux Forums — Firefox Developer Edition"
WM_NAME(COMPOUND_TEXT) = "Xorg and KDE Plasma problem with windows / Applications & Desktop Environments / Arch Linux Forums — Firefox Developer Edition"
_NET_WM_NAME(UTF8_STRING) = "Xorg and KDE Plasma problem with windows / Applications & Desktop Environments / Arch Linux Forums — Firefox Developer Edition"I found kind of a fix, I switch to another activity and open and close a program, when I go back it looks fine.
here is the xprop on firefox after it's fixed
_NET_WM_ICON_GEOMETRY(CARDINAL) = 332, 1036, 52, 44
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 24, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 24, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_KDE_NET_WM_ACTIVITIES(STRING) = "e853931f-a210-407d-b163-0d46bdfb44dd"
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_FOCUSED
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x3800030
bitmap id # of mask for icon: 0x3800037
window id # of group leader: 0x3800001
_GTK_THEME_VARIANT(UTF8_STRING) = "dark"
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
WM_WINDOW_ROLE(STRING) = "browser"
XdndAware(ATOM) = BITMAP
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 21550
_NET_WM_ICON(CARDINAL) = Icon (128 x 128):
(not shown)
Icon (32 x 32):
<icon stuff>
Icon (48 x 48):
<icon stuff>
Icon (64 x 64):
<icon stuff>
Icon (16 x 16):
<icon stuff>
_NET_WM_OPAQUE_REGION(CARDINAL) = 0, 0, 1920, 1012
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 58720302, 58720303
_NET_WM_USER_TIME(CARDINAL) = 4799709
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x380002d
WM_CLIENT_LEADER(WINDOW): window id # 0x3800001
_NET_WM_PID(CARDINAL) = 1624
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "ihateeduroam"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 450 by 120
program specified maximum size: 16384 by 16384
program specified base size: 450 by 120
window gravity: NorthWest
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_CLASS(STRING) = "Navigator", "firefoxdeveloperedition"
WM_ICON_NAME(COMPOUND_TEXT) = "Edit post / Arch Linux Forums — Firefox Developer Edition"
_NET_WM_ICON_NAME(UTF8_STRING) = "Edit post / Arch Linux Forums — Firefox Developer Edition"
WM_NAME(COMPOUND_TEXT) = "Edit post / Arch Linux Forums — Firefox Developer Edition"
_NET_WM_NAME(UTF8_STRING) = "Edit post / Arch Linux Forums — Firefox Developer Edition"Last edited by varolbora5 (2023-01-12 20:48:43)
Offline
The "fixed" window ends up being maximized and having the focus.
Was the broken window supposed to hold any of those states as well?
Offline
I think I did that myself after it was focused, I know I maximized it, and I think I alt-tabd to it to xprop it.
Offline
Then there's no significant change, the window is at no point flagged fullscreen (what would impact its stack position)
Is FF always involved?
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUESTI can see how WM_TAKE_FOCUS could be a problem and lo and behold:
https://bugs.kde.org/show_bug.cgi?id=421068
You could test whether reverting to the (illegal, picked out of desperation) current_time "fixes" it.
There might be some more general issue around the server timestamp handling… ![]()
Offline
I don't know how I could do that as I don't have much of an experience with wms, could you elaborate on how to do this please?
Offline
You'll have to revert the patch that replaced current_time w/ an actual timestamp and re-compile kwin.
Offline
I just switched my window theme from utterly round to the default breeze and the problem seems to be gone.
Nope, nope, nope it isn't I just went to another activity and came back and its happening again.
Last edited by varolbora5 (2023-01-18 10:45:27)
Offline
This is still happening, I have multiple "Activities" and from time to time this happens and fixes itself after I switch through my activities a couple times with the hotkeys.
Offline
You'll have to revert the patch that replaced current_time w/ an actual timestamp and re-compile kwin.
Offline
I don't think thats the problem because the window on that comes on top doesn't take the focus, the active window is behind the 'ghost' window. Plus I don't know how to revert the patch to check if that fixes it.
Offline
Interesting logic. You don't know how to revert a patch, therefore you declare it to be irrelevant.
Did you consider that a window in the background obtains the focus w/o being activated/raised?
Did stack order or focus change during the activity change? (Ie. is the wrong window on top or does the wrong window have th focus?)
If every single time a window w/ that idiotic cooperative focus management (WM_TAKE_FOCUS, and in particular "firefox") is involved, I'd very strongly look there.
You clone the kwin repo and "git revert" the patch, then build kwin.
Offline
Ok I will try that
And I'm not saying its irrelevant because I don't know how to revert a patch I'm raising another argument for why it might be irrelevant and declaring that I don't know how to do it so I wouldn't be able to check without further help.
Offline