Bug 460385

Summary: libreoffice calc maximized window is incorrectly restored (start in new Plasma session)
Product: [Plasma] kwin Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate, piotr.mierzwinski
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
URL: https://bugs.documentfoundation.org/show_bug.cgi?id=148637
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: calc thumbnail
Display Configuration
kscreen configuration

Description Piotr Mierzwinski 2022-10-13 18:36:29 UTC
Created attachment 152783 [details]
calc thumbnail

SUMMARY
In moment of closing calc (LibreOffice) window I have it usually maximized. Unfortunately at the next start I don't see any window after application finished its start.. In taskbar is placed icon, application is running. In thumbnail (over mouse on icon in task bar) I can see narrow bar (check attached screen shot). To get this window in normal size I need to maximize it, for example by RMB on icon placed in taskbar -> More -> Maximize.
This  situation repeat every day when I start  calc, but only at very fist start given day, because when I quit and start calc  again the same day, I get it with normal size (with recent size, so maximized).

STEPS TO REPRODUCE
1. run PC
2. login to Plasma session
3. start any document of calc (odt, LibreOffice). I do it by KRunner just entering its name.

OBSERVED RESULT
Not visible window and in thumbnail only some narrow bar (attached)

EXPECTED RESULT
Window of started calc should be visible

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Operating System: KDE neon Unstable Edition
Graphics Platform: X11
Graphics Processor: Mesa IntelĀ® Xe Graphics
Comment 1 Piotr Mierzwinski 2022-10-13 18:54:01 UTC
Created attachment 152785 [details]
Display Configuration

I have connected (via HDMI) external monitor to my laptop. External monitor is my main display. After turning laptop on I immediately close its lid so display switched to external monitor.
Comment 2 Piotr Mierzwinski 2022-10-13 18:55:50 UTC
Created attachment 152786 [details]
kscreen configuration

I attach also configuration (working with current session) generated by kscreen
Comment 3 Vlad Zahorodnii 2022-10-13 19:12:04 UTC
Do you use Bismuth?
Comment 4 Piotr Mierzwinski 2022-10-13 21:40:33 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Do you use Bismuth?

Sorry, I don't know what is Bismuth, so I suppose I don't use ot.
Please consider that this happens only with libreoffice and started  more or less 2 weeks ago (didn't have time to report earlier).
Other applications based on gtk+, Qt and of course KDE/Plasma behave correctly in my configuration.
Comment 5 Piotr Mierzwinski 2022-10-13 21:52:38 UTC
Forgot to add LibreOffice version:

Version: 7.4.2.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.2~rc3-0ubuntu0.20.04.1~lo1
Calc: threaded

I have also installed integration with KDE/Plasma
Comment 6 Piotr Mierzwinski 2022-10-14 19:34:45 UTC
Issue disappeared. I'm not sure if helped recent update or that I run writer by Application Launcher, closed it and after that I run calc, which started normally (window was visible).
Comment 7 Nate Graham 2022-10-14 20:11:06 UTC
This is actually a LibreOffice bug; see https://bugs.documentfoundation.org/show_bug.cgi?id=148637.