Add null guards in QuickSettingsDelegate and convergentwindows

Check restrictedPermissions before opening the detail popup in
convergence mode. Guard against null output in the KWin script
window-setup handler to prevent TypeError when a window has no
assigned output yet.
This commit is contained in:
Marco Allegretti 2026-04-18 20:24:28 +02:00
parent 8fecdf1d2d
commit aa4103f72a
2 changed files with 2 additions and 1 deletions

View file

@ -101,7 +101,7 @@ MobileShell.BaseItem {
function delegatePressAndHold() {
// In convergence mode, show inline detail popup if available.
if (ShellSettings.Settings.convergenceModeEnabled && root.settingsCommand) {
if (ShellSettings.Settings.convergenceModeEnabled && root.settingsCommand && !root.restrictedPermissions) {
let pluginId = __appletForCommand[root.settingsCommand];
if (pluginId) {
root.detailRequested(pluginId);

View file

@ -31,6 +31,7 @@ Loader {
const output = window.output
const desktop = window.desktops[0]
if (!output) return
if (!desktop) return
const maxRect = KWinComponents.Workspace.clientArea(