[effects/slide] Handle moving clients
ClosedPublic

Authored by zzag on Dec 23 2017, 10:20 AM.

Details

Summary

Currently, slide effect doesn't handle a case when there
is a moving client. This results in having window jumps.
This commit fixes it by fixing position of the moving client
during switching to another desktop.

Test Plan
  • send window one desktop to the left/right using shortcuts

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
zzag created this revision.Dec 23 2017, 10:20 AM
Restricted Application added a project: KWin. · View Herald TranscriptDec 23 2017, 10:20 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Dec 23 2017, 10:20 AM
Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 23 2017, 10:24 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin requested changes to this revision.Dec 23 2017, 2:42 PM
graesslin added a subscriber: graesslin.
graesslin added inline comments.
effects/slide/slide.cpp
92–93

I don't like empty if blocks. Please handle this e.g. with if (slide && w != m_movingWindow)

279

The window is nowhere reset, also it's not handling the windowClosed/windowRemoved case. This means the pointer could dangle.

effects/slide/slide.h
68

You can simplify:

EffectWindow *m_movingWindow = nullptr;
This revision now requires changes to proceed.Dec 23 2017, 2:42 PM
Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptDec 23 2017, 2:42 PM
zzag edited the summary of this revision. (Show Details)Dec 24 2017, 6:23 AM
Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 24 2017, 6:23 AM
zzag updated this revision to Diff 24350.Dec 24 2017, 6:24 AM

Updating D9487: [effects/slide] Handle moving clients

Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptDec 24 2017, 6:24 AM
zzag marked 3 inline comments as done.Dec 24 2017, 6:24 AM
Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 24 2017, 6:24 AM
graesslin accepted this revision.Dec 24 2017, 9:14 AM
graesslin added inline comments.
effects/slide/slide.cpp
295–296

coding style nitpick: please wrap in {}

This revision is now accepted and ready to land.Dec 24 2017, 9:14 AM
Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptDec 24 2017, 9:14 AM

@zzag: do you have commit rights? If not please request a developer account. Please see https://community.kde.org/Infrastructure/Get_a_Developer_Account

Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 24 2017, 9:16 AM
zzag added a comment.Dec 24 2017, 6:31 PM

@graesslin No, I don't.

As stated in https://community.kde.org/Infrastructure/Get_a_Developer_Account

Also please apply for an account only if you think that you will work on KDE for a somewhat longer time. If you know that you will only work for a couple of weeks and then never again, please consider not applying for a KDE Developer account but instead continue to send patches directly to developers.

It would be better not to apply for a KDE developer account.

Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptDec 24 2017, 6:31 PM
zzag added a comment.Dec 24 2017, 6:33 PM

Could you please land D9382?

Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 24 2017, 6:33 PM

I'm not able to apply it with arc patch. It complains about a missing base commit and tries to download from github which I don't use.

Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptDec 30 2017, 9:42 AM
zzag added a comment.Dec 30 2017, 6:00 PM

Hmm, weird.. I've just applied for a developer account. If I get commit rights, I will land them.

Happy holidays! :)

Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptDec 30 2017, 6:00 PM
zzag closed this revision.Jan 1 2018, 3:13 PM
Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptJan 1 2018, 3:13 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptJan 1 2018, 3:13 PM