Skip to content

Commit d3773fc

Browse files
committed
release always-open-on-active-screen v2.7
1 parent 60cfd07 commit d3773fc

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

always-open-on-active-screen/CHANGELOG.bbcode

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[h2]v2.7[/h2]
2+
[list]
3+
[*] fix metadata not found
4+
[/list]
5+
16
[h2]v2.5[/h2]
27
[list]
38
[*] fix metadata not found

always-open-on-active-screen/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v2.7
2+
- fix metadata not found
3+
14
## v2.5
25
- fix metadata not found
36

always-open-on-active-screen/contents/code/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ GNU General Public License v3.0
66

77
// when a client is added
88
workspace.clientAdded.connect(function(client) {
9+
// get active screen
910
activeScreen = workspace.activeScreen;
10-
// move client to active screen
11-
if (client == null || client.desktopWindow || client.dock) return;
11+
12+
if (!client) return;
1213
if (client.screen == activeScreen) return;
14+
15+
// move client to active screen
1316
console.debug("sending client", client.caption, "to active screen", activeScreen);
1417
workspace.sendClientToScreen(client, activeScreen);
1518

always-open-on-active-screen/metadata.desktop

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Comment[nl]=Opent nieuwe vensters altijd op het scherm met de cursor]
1212
Icon=preferences-system-windows
1313

1414
X-KDE-PluginInfo-Name=alwaysopenonactivescreen
15-
X-KDE-PluginInfo-Version=2.5
15+
X-KDE-PluginInfo-Version=2.7
1616
X-KDE-PluginInfo-Author=Natalie Clarius
1717
X-KDE-PluginInfo-Email[email protected]
1818
X-KDE-PluginInfo-License=GPL v3.0
@@ -22,6 +22,7 @@ Type=Service
2222
X-Plasma-API=javascript
2323
X-Plasma-MainScript=code/main.js
2424
X-KDE-ServiceTypes=KWin/Script,KCModule
25+
X-KDE-Library=kwin/effects/configs/kcm_kwin4_genericscripted
2526
X-KDE-ConfigModule=kwin/effects/configs/kcm_kwin4_genericscripted
2627
X-KDE-PluginKeyword=alwaysopenonactivescreen
2728
X-KDE-ParentComponents=alwaysopenonactivescreen

0 commit comments

Comments
 (0)