Bug 371221 - Restored maximized windows can't be minimized
Summary: Restored maximized windows can't be minimized
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.9.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-19 13:33 UTC by Gabriel C
Modified: 2021-12-06 04:38 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel C 2016-10-19 13:33:55 UTC
When any kind window is saved maximized on restore there is no way to minimize it again.

I noticed the following in journalctl:

"\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed"
(  https://bugs.kde.org/show_bug.cgi?id=306898 marked solved but is not )

also starting as example from a already running session:
konsole --session some_session works just fine.

Reproducible: Always

Steps to Reproduce:
1. Make sure SM is on 
2.  Open some apps and mazimize the windows ( systemsetting , konsole etc )
3. Logut / Login and try to mininize

Actual Results:  
No way to minimize

Expected Results:  
Minimize the windows

Tested on :
Neon
Arch Linux
KaOS
Frugalware Linux
Comment 1 Martin Flöser 2017-02-24 14:37:39 UTC
What do you mean with "No way to minimize?" How did you try to minimize?
Comment 2 Gabriel C 2017-02-24 15:16:06 UTC
With the 'minimize' button from the decoration.

Also I found out every app is fine with -session and will minimize / mazimize but not when kwin_x11 starts with -session.

Also I get lots :

conversion of \"0,0,0,0\" to QRect failed

from fsrestoreX= and restoreX=

..

here is a partial valgrind log from 5.9.2..

==27531== Command: kwin_x11 -session 10e1776572000148787086900000239150010_1487871669_986439 --replace
==27531== 
QXcbConnection: XCB error: 3 (BadWindow), sequence: 178, resource id: 2097158, major code: 20 (GetProperty), minor code: 0
"\"restore1\" - conversion of \"0,0,0,0\" to QRect failed"
"\"restore2\" - conversion of \"0,0,0,1048\" to QRect failed"
GAB: isManaged()
==27531== Syscall param writev(vector[...]) points to uninitialised byte(s)
==27531==    at 0x512946D: ??? (in /lib/libc-2.24.so)
==27531==    by 0x610449C: ??? (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0x610489C: ??? (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0x6104AF6: ??? (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0x61052CB: xcb_flush (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0x55C5507: KWin::Client::sendSyntheticConfigureNotify() (geometry.cpp:1581)
==27531==    by 0x55C7A3C: KWin::Client::setGeometry(int, int, int, int, KWin::AbstractClient::ForceGeometry_t) (geometry.cpp:1978)
==27531==    by 0x55095A4: KWin::AbstractClient::setGeometry(QRect const&, KWin::AbstractClient::ForceGeometry_t) (abstract_client.h:1086)
==27531==    by 0x55C8B1D: KWin::AbstractClient::blockGeometryUpdates(bool) (geometry.cpp:2137)
==27531==    by 0x55A0C60: KWin::Client::manage(unsigned int, bool) (manage.cpp:646)
==27531==    by 0x54CD04C: KWin::Workspace::createClient(unsigned int, bool) (workspace.cpp:520)
==27531==    by 0x54CC148: KWin::Workspace::init() (workspace.cpp:327)
==27531==  Address 0x1bbfa6f8 is 4,936 bytes inside a block of size 21,152 alloc'd
==27531==    at 0x4C2D765: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27531==    by 0x6103E7B: xcb_connect_to_fd (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0x6107BB0: xcb_connect_to_display_with_auth_info (in /usr/lib/libxcb.so.1.1.0)
==27531==    by 0xD5A5989: _XConnectXCB (in /usr/lib/libX11.so.6.3.0)
==27531==    by 0xD596EBE: XOpenDisplay (in /usr/lib/libX11.so.6.3.0)
==27531==    by 0x22C171A7: QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) (qxcbconnection.cpp:581)
==27531==    by 0x22C1B5FB: QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) (qxcbintegration.cpp:186)
==27531==    by 0x40265EC: QXcbIntegrationPlugin::create(QString const&, QStringList const&, int&, char**) (qxcbmain.cpp:56)
==27531==    by 0x6FA3188: QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) (qplatformintegrationfactory.cpp:71)
==27531==    by 0x6FB0903: init_platform (qguiapplication.cpp:1094)
==27531==    by 0x6FB0903: QGuiApplicationPrivate::createPlatformIntegration() (qguiapplication.cpp:1257)
==27531==    by 0x6FB15E4: QGuiApplicationPrivate::createEventDispatcher() (qguiapplication.cpp:1274)
==27531==    by 0x76138EF: QCoreApplicationPrivate::init() (qcoreapplication.cpp:787)

.. 

These GAB messages are just some qDebug() I've added around , there is no code changes.
Comment 3 Gabriel C 2017-02-24 15:52:28 UTC
There an small video to demonstrate this :

http://ftp.frugalware.org/pub/other/people/crazy/vokoscreen-2017-02-24_16-37-11.mkv
Comment 4 Gabriel C 2017-06-06 16:04:05 UTC
Still an bug in plasma 5.10.0
Comment 5 Gabriel C 2017-06-14 20:23:45 UTC
Still an bug in 5.10.2
Comment 6 kde.org 2021-11-06 19:40:48 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 7 Gabriel C 2021-11-06 21:01:37 UTC
(In reply to kde.org from comment #6)
> This issue report is quite old. Can you please confirm, that it still
> persists with KDE 5.23?

Yes that issue still exists.
Comment 8 Bug Janitor Service 2021-11-21 04:39:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2021-12-06 04:38:54 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!