https://bugs.kde.org/show_bug.cgi?id=374447

            Bug ID: 374447
           Summary: Moving a window around the same desktop should be
                    optional
           Product: plasmashell
           Version: master
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Pager
          Assignee: h...@kde.org
          Reporter: zrenf...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

I release/drop the window on the same desktop when I want to "cancel" changing
it's desktop. The default behaviour is to move the window. This should be
optional.

Adding the value is easy, but I'm not 100% sure where it should be "checked".
The easiest way would be to check if source == target desktop id in QML here:

https://github.com/KDE/plasma-desktop/blob/master/applets/pager/package/contents/ui/main.qml#L451

I'll probably add a if (pagerItem.desktopId != root.dragId) {...} around that
locally for now,

but it looks like it will also perform the drag if the window is available on
all desktops in the C++ model, so a new property probably needs to be added to
pager model.

https://github.com/KDE/plasma-desktop/blob/master/applets/pager/plugin/pagermodel.cpp#L502

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to