Bug 334920 - Windows minimises to center of screen
Summary: Windows minimises to center of screen
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 4.96.0
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-17 01:48 UTC by enoopt.adams
Modified: 2021-12-06 04:38 UTC (History)
3 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 enoopt.adams 2014-05-17 01:48:48 UTC
The window animation to minimises should minimises to the panel, but instead it shrinks and fades to the center of the screen.

Reproducible: Always

Steps to Reproduce:
1. Open application
2. Minimise application

Actual Results:  
Minimises to center of screen

Expected Results:  
Minimise to panel
Comment 1 Martin Flöser 2014-05-17 07:03:31 UTC
works fine for me. Do you use a taskbar of plasmashell? If yes, which version? We had a very important bug fix the other day which might also cause this problem.
Comment 2 enoopt.adams 2014-05-17 08:31:05 UTC
I'm getting this bug with the neon5-201405132125.iso. Everything seems to be the default settings. I am using the taskbar from plasma shell. The bug appears both in a virtual machine and if I flash it to a usb drive.
Comment 3 Martin Flöser 2014-05-17 09:35:01 UTC
all right, that image might be too old. The bug fix was done after that and should be in http://neon.blue-systems.com/live-iso/neon5-201405161144.iso
Comment 4 enoopt.adams 2014-05-17 23:00:02 UTC
I tested the neon5-201405161144.iso in both a virtual pc and using a thumb drive and I still get this bug. Windows minimise to the center of screen instead of to the panel.
Comment 5 Thomas Lübking 2014-05-18 11:01:33 UTC
Iirc the bugfix might have *caused* this as side effect regression, so the "old" version should have not been affected.

What's the output of
   xprop _NET_WM_ICON_GEOMETRY
for such window? (run from konsole and click the window when the cursor turns into a cross)

Another popular reason for this is that the taskbar only shows entries for minimized windows and/or a multiscreen setup - any match in that regard?
Comment 6 enoopt.adams 2014-05-19 05:45:45 UTC
Output of the command is "_NET_WM_ICON_GEOMETRY: no such atom on any window"
Taskbar also seems to be working. All entries are shown, both minimised and otherwise.
Comment 7 enoopt.adams 2014-05-19 05:53:32 UTC
It seems that after the system was running for a short time the problem is fixed and windows correctly minimise to the system tray. I restarted the system and ran that command again and got "_NET_WM_ICON_GEOMETRY: not found".
Comment 8 Thomas Lübking 2014-05-19 09:12:43 UTC
there's no "minimize to systemtray" - if an application puts an icon into the system tray and you close that window/click the systray icon various client specific things can happen.

in this case, please record the particular client (firefox, kwallet, ...) and the exact procedure to "minimize to systemtray"
Comment 9 enoopt.adams 2014-05-19 09:22:09 UTC
Pardon me, I meant minimise to the task manager.
Comment 10 Thomas Lübking 2014-05-19 14:35:58 UTC
As long as there's no _NET_WM_ICON_GEOMETRY on the window, it cannot be targetted.

Please see whether it's there when things start working.

@Martin: xcb_flush issue?
-------
https://bugs.kde.org/show_bug.cgi?id=334858
https://git.reviewboard.kde.org/r/118167/
https://codereview.qt-project.org/85654
Comment 11 Martin Flöser 2014-05-19 16:38:27 UTC
> 
> @Martin: xcb_flush issue?

Personally I decided to blame all "strange issues" on missing xcb_flush ;-)

It's quite likely and I think we need workarounds in kwin and plasmashell.
Comment 12 enoopt.adams 2014-05-22 04:18:09 UTC
I added a task manager widget to the desktop and windows started to correctly minimising to that widget. Output of the command at that time was "_NET_WM_ICON_GEOMETRY(CARDINAL) = 478, 245, 68, 34". I moved the task manager the the corner of the screen, but windows still minimised to the spot it had been placed originally. I tried removing the task manager, but windows still minimized to that spot. Output of the command stayed the same through out.
Comment 13 Martin Flöser 2014-05-22 05:56:57 UTC
> I added a task manager widget to the desktop and windows started to
> correctly minimising to that widget.

wait, you weren't using a task manager before?
Comment 14 enoopt.adams 2014-05-22 05:59:19 UTC
No I was, I wanted to see if adding another task manager would fix the problem. This has been occurring on the project-neon iso, default settings with no changes made.
Comment 15 Thomas Lübking 2014-05-22 06:43:59 UTC
> I moved the task manager the the corner of the screen, but windows still minimised to the spot it 
> had been placed originally. I tried removing the task manager, but windows still minimized to that 
> spot. Output of the command stayed the same through out.

-> 99.9% https://git.reviewboard.kde.org/r/118234/
Comment 16 enoopt.adams 2014-05-24 09:44:46 UTC
After it start minimising correctly again, the command returns "_NET_WM_ICON_GEOMETRY(CARDINAL) = 365, 742, 293, 26". Minimising appears to be broken when first booting in, but works after a while.
Comment 17 kde.org 2021-11-06 17:46:22 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 18 Bug Janitor Service 2021-11-21 04:38:49 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 19 Bug Janitor Service 2021-12-06 04:38:13 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!