[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-10 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #9 from Michail Vourlakos  ---
so sorry Martin... 

I have just found it how to use only javascript code through callDBus function
and not qml at all...

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-10 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #8 from Michail Vourlakos  ---
Martin I get an error from the following code:

file:///home/michail/.local/share/kwin/scripts/activatelattelaunchermenu/contents/ui/main.qml:48:
ReferenceError: registerScreenEdge is not defined

do I miss something?

-
import QtQuick 2.0

import org.kde.kwin 2.0
import org.kde.latte 0.1 as Latte

Item {
id: root

property var registeredBorders: []

Component.onCompleted: {
options.configChanged.connect(init);

init();
}

function init() {
for (var i in registeredBorders) {
unregisterScreenEdge(registeredBorders[i]);
}

registeredBorders = [];

var borders = KWin.readConfig("BorderActivate",
"").toString().split(",");
for (var i in borders) {
var border = parseInt(borders[i]);
if (isFinite(border)) {
registeredBorders.push(border);
registerScreenEdge(border, activateLauncherMenu);
}
}
}

function activateLauncherMenu() {
Latte.WindowSystem.activateLatteLauncherMenu();
}
}



-

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-09 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #7 from Martin Flöser  ---
It just works like any other edge action... You don't need a config file for
it. You can have a look at minimizeAll script which uses edge activation
already.

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-09 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #6 from Michail Vourlakos  ---
Ok.. I will create a kwin script for this then... I just need to find out kwin
scripts where to they store their settings, in order to give at least to the
user the option to edit that file to set the Corner that wants the script to be
executed...

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-08 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #5 from Michail Vourlakos  ---
can kwin scripts be assigned by the user to which edge to be activated like the
original kwin edge actions?

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-08 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=391575

Martin Flöser  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Martin Flöser  ---
You could provide a KWin script to launch latte dock.

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-08 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

--- Comment #3 from Michail Vourlakos  ---
Martin I have sent this: https://phabricator.kde.org/D11164

in case we can make edges aware of user-set modifier actions

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

[kwin] [Bug 391575] [Application Launcher Hot Spot Edge] - isnt triggering for Latte Dock

2018-03-08 Thread Michail Vourlakos
https://bugs.kde.org/show_bug.cgi?id=391575

Michail Vourlakos  changed:

   What|Removed |Added

  Component|containment |general
Version|git (master)|5.12.2
   Assignee|mvourla...@gmail.com|kwin-bugs-n...@kde.org
Product|lattedock   |kwin

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