Bug 408266

Summary: Grab the active window not possible
Product: [Unmaintained] lattedock Reporter: Christos <aligatorturtle>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: emilianh
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: late layout file
screenshot of whole top panel
Screenshot of panel settings behavior page
simple layout that still doesnțt work as expected
env output debian

Description Christos 2019-06-03 22:10:14 UTC
SUMMARY

I just installed latte-dock from git on opensuse tumbleweed and I am unable to use latte's empty space to grab the active window. 

No errors whatsoever during installation. 



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2019-06-04 04:18:50 UTC
You need to enable that option from Behavior page
Comment 2 Christos 2019-06-04 08:43:40 UTC
Drag and maximize/restore active window is enabled.
Comment 3 emilianh 2019-06-04 08:55:10 UTC
Same happens here with latest master.
I can see this in latte's output (if started with -d) as I attempt to drag:

[warning 11:46:33.3939] - "" doesn't have any WindowType, assuming as NET::Normal
Comment 4 Michail Vourlakos 2019-06-04 09:32:10 UTC
send me your layout file
Comment 5 Michail Vourlakos 2019-06-04 09:32:14 UTC
send me your layout file
Comment 6 emilianh 2019-06-04 09:44:07 UTC
Created attachment 120556 [details]
late layout file

Attached the layout as requested.

TIA
Comment 7 Michail Vourlakos 2019-06-04 10:53:38 UTC
(In reply to emilianh from comment #6)
> Created attachment 120556 [details]
> late layout file
> 
> Attached the layout as requested.
> 
> TIA

it works just fine in my system.
please send me a screenshot from your top panel and your Behavior page
Comment 8 emilianh 2019-06-04 11:02:02 UTC
Created attachment 120558 [details]
screenshot of whole top panel
Comment 9 emilianh 2019-06-04 11:02:53 UTC
Created attachment 120559 [details]
Screenshot of panel settings behavior page

Attached the two requested screenshots.

TIA
Comment 10 Michail Vourlakos 2019-06-04 11:06:15 UTC
(In reply to emilianh from comment #9)
> Created attachment 120559 [details]
> Screenshot of panel settings behavior page
> 

dragging active window works only for windows in the same screen with the panel/dock, isnt that the case for you?
Comment 11 Michail Vourlakos 2019-06-04 11:07:41 UTC
If I cant reproduce difficult to find out what breaks
Comment 12 emilianh 2019-06-04 11:11:54 UTC
Yes I know that, that's why I showed you a window on the middle screen and the settings of the panel from that same screen. 
Unfortunately it's not working.

(If it helps narrowing down, before this newest build I had a build from May 17th, whith wich drag worked as expected.)

TIA
Comment 13 Michail Vourlakos 2019-06-04 11:43:56 UTC
(In reply to emilianh from comment #12)
> Yes I know that, that's why I showed you a window on the middle screen and
> the settings of the panel from that same screen. 
> Unfortunately it's not working.
> 
> (If it helps narrowing down, before this newest build I had a build from May
> 17th, whith wich drag worked as expected.)
> 
> TIA

Are you building Latte from source or other way?
Comment 14 emilianh 2019-06-04 11:50:50 UTC
Created attachment 120560 [details]
simple layout that still doesnțt work as expected

I tried with a new, simple layout, and it's well weird.
It works, partially, only for the first active window, then all actions are applied to that same window.

Yes I am building from source.
Comment 15 Michail Vourlakos 2019-06-04 12:19:02 UTC
Send me please also your env output
Comment 16 Christos 2019-06-04 12:51:26 UTC
Created attachment 120561 [details]
env output debian

I installed debian, built latte-dock from git and still the same error. I attatch my env output
Comment 17 Christos 2019-06-04 12:53:13 UTC
(though I'm not really sure if that's what you meant by env output)
Comment 18 Michail Vourlakos 2019-06-04 13:18:11 UTC
Your env output is ok, what are the plasma and Qt versions in Debian?
Comment 19 Christos 2019-06-04 13:28:04 UTC
Sistema operativo: Debian GNU/Linux 10
Versión de KDE Plasma: 5.14.5
Versión de Qt: 5.11.3
Versión de KDE Frameworks: 5.54.0
Versión del kernel: 4.19.0-5-amd64

On debian sid
Comment 20 Michail Vourlakos 2019-06-04 16:25:58 UTC
Git commit c05204ab7b986e147591ea6ee9bab2db7f4a1c9a by Michail Vourlakos.
Committed on 04/06/2019 at 16:25.
Pushed by mvourlakos into branch 'master'.

enable windows tracking for draggingActiveWindow

M  +1    -0    containment/package/contents/ui/VisibilityManager.qml

https://commits.kde.org/latte-dock/c05204ab7b986e147591ea6ee9bab2db7f4a1c9a
Comment 21 Michail Vourlakos 2019-06-04 16:26:59 UTC
ok, I managed to reproduce with the second layout...
thanks a lot, this was valid and simple to solve at the same time...
Comment 22 emilianh 2019-06-04 16:37:17 UTC
I can confirm it's now fixed in my case.

Thanks :)
Comment 23 Christos 2019-06-04 17:49:08 UTC
Great! Thanks for the quick solution!!