Update pointer position whenever a window gets (un)minimized
ClosedPublic

Authored by graesslin on Oct 4 2017, 7:04 PM.

Details

Summary

This fixes the following problem:

  1. Have two windows maximized
  2. Click minimize button on first window
  3. Click minimize button on second window

What happened:
Second click was ignored as the pointer was not updated.

BUG: 378704
FIXED-IN: 5.11

Test Plan

Nested KWin/Wayland, added two maximized windows, minimized
both without moving the mouse

Diff Detail

Repository
R108 KWin
Branch
minimize-update-pointer-5.11
Lint
No Linters Available
Unit
No Unit Test Coverage
graesslin created this revision.Oct 4 2017, 7:04 PM
Restricted Application added a project: KWin. · View Herald TranscriptOct 4 2017, 7:04 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript

Why isn't the stacking order changing when you minimise the first? Shouldn't it?

Why should it? The stack remains the same, just one window changes its visibility.

yep, I actually checked whether we can use the stacking order changed for that, but it's clearly documented as only when the actual layering changes. And I fear it would cause problems in other areas where code reacts on stacking order changes and gets confused if nothing changes.

davidedmundson accepted this revision.Oct 8 2017, 10:28 AM
This revision is now accepted and ready to land.Oct 8 2017, 10:28 AM
This revision was automatically updated to reflect the committed changes.