Bug 419193

Summary: Resizing a maximized window from borders/grip does not (seem to) update maximization status
Product: [Plasma] kwin Reporter: avlas <jsardid>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jasu.koponen
Priority: NOR    
Version: 5.18.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description avlas 2020-03-24 19:08:20 UTC
SUMMARY

I use a tiling script and have the issue that resizing maximized windows from borders or grip (hence unmaximizing the window) breaks tiling because kwin does not seem to update the maximization status (it seems to retain the maximized status even when the window is clearly not maximized anymore)

Original report of the issue to the tiling script: https://github.com/Jazqa/kwin-quarter-tiling/issues/81#issuecomment-603441988

STEPS TO REPRODUCE
1. Enable a tiling script
2. Maximize a window
3. Resize the window from borders or grip

OBSERVED RESULT

The (non-maximized) window is not tiled

EXPECTED RESULT

The (non-maximized) window should be tiled

Operating System: KDE neon 5.18
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1
Kernel Version: 5.3.0-42-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.4 GiB
Comment 1 jasu.koponen 2020-03-24 19:22:51 UTC
Basically clientMaximizeSet is not triggered after resizing a maximized window (and thus unmaximizing it)
Comment 2 Vlad Zahorodnii 2020-03-26 09:12:27 UTC
(In reply to jasu.koponen from comment #1)
> Basically clientMaximizeSet is not triggered after resizing a maximized
> window (and thus unmaximizing it)

Are those windows maximized only in one dimension, e.g. maximized horizontally or maximized vertically?
Comment 3 avlas 2020-03-26 11:49:49 UTC
(In reply to Vlad Zahorodnii from comment #2)
> (In reply to jasu.koponen from comment #1)
> > Basically clientMaximizeSet is not triggered after resizing a maximized
> > window (and thus unmaximizing it)
> 
> Are those windows maximized only in one dimension, e.g. maximized
> horizontally or maximized vertically?

The issue seems to only happen when windows are maximized in both
Comment 4 Vlad Zahorodnii 2023-01-18 12:38:31 UTC
Cannot reproduce in latest plasma. Reopen if the issue is still present.