Bug 400391 - Drag from Latte panel to move a window, Double click to maximize/restore window
Summary: Drag from Latte panel to move a window, Double click to maximize/restore window
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-28 02:42 UTC by trmdi
Modified: 2018-10-28 12:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2018-10-28 02:42:44 UTC
The title says it all.
That makes this dream come true: https://github.com/kotelnik/plasma-applet-active-window-control/issues/30
Comment 1 Michail Vourlakos 2018-10-28 04:45:23 UTC
the
Comment 2 Michail Vourlakos 2018-10-28 04:47:51 UTC
this is not a dream, because I am already doing it in my system... 

Take note that this implies that you drag from an area that does not contain an applet over it. In order for applets to support it can Latte provide them access to these two functions in order to use them if they want to.
Comment 3 Michail Vourlakos 2018-10-28 08:19:04 UTC
Git commit 9b0feaea6aac4544c989b898dd05e57064a94168 by Michail Vourlakos.
Committed on 28/10/2018 at 08:13.
Pushed by mvourlakos into branch 'master'.

drag active window from panel

the user can use the empty panel areas
in order to drag the active window
and by double clicking to maximize/restore
the active window

A  +96   -0    containment/package/contents/ui/RootMouseArea.qml     [License: GPL (v2+)]
M  +1    -70   containment/package/contents/ui/main.qml

https://commits.kde.org/latte-dock/9b0feaea6aac4544c989b898dd05e57064a94168
Comment 4 Michail Vourlakos 2018-10-28 08:19:49 UTC
ok... I uploaded it in order to play with it...

in upcoming commit there will be options in Tweaks or Behavior in order to activate this. Until then it is enabled by default.
Comment 5 trmdi 2018-10-28 12:03:26 UTC
Yeah, it works just smoothly.

But there is a new small issue, if I turn off the "Fill width" option from AWC (right click on AWC > Configure > Appearance > Fill width) to use the new drag feature, it's very difficult to open the AWC configure window again.

Screenshot:
- https://i.imgur.com/bcizNX1.png
- https://i.imgur.com/ts8PAzm.png

Please tell me if I need to open a new issue for Latte/AWC.
Comment 6 trmdi 2018-10-28 12:37:32 UTC
A small update on the issue above:
- If I move the width slider in AWC (below the Fill width checkbox), AWC would have a fixed width area on Latte panel, then I can right click on it to open the Configure window, or when I enter Latte's edit mode, it would show an AWC area on the panel. (Otherwise, there would be an issue like I said above.)
This seems to be an AWC issue.

But, do you think Latte need to show the widget area/icon... in the edit mode, even when its width = 0 like the case I mentioned above ? Otherwise it would be like this: https://i.imgur.com/ts8PAzm.png

- Another thing is, do you have a way to make it's possible to drag the window when the cursor is on the AWC's window title section? I think this case is very likely to happen when users use the drag feature.

- A wish about your new buttons widget: it should be able to show the window title beside the buttons, like what AWC has been doing.
Comment 7 Michail Vourlakos 2018-10-28 12:39:36 UTC
This is AWC related so it must be answered from AWC how would like to approach this...

But because I am not AWC maintainer I don't know what AWC wants. Latte can provide a function to applets and AWC if that helps
Comment 8 trmdi 2018-10-28 12:52:16 UTC
@Zren:

Please read from my comment #5: https://bugs.kde.org/show_bug.cgi?id=400391#c5
Tell me if you want me to create a new issue for AWC.