Skip to content

Commit 437ba3d

Browse files
committed
better compatibility with Wayland
1 parent f4acfca commit 437ba3d

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[h1]v3.0[/h1]
2+
[list]\n[*] better compatibility with Wayland
3+
[/list]
4+
15
[h2]v2.7[/h2]
26
[list]\n[*] remove inappropriate configuration module entry in metadata
37
[*] add debug info

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v3.0
2+
- better compatibility with Wayland
3+
14
## v2.7
25
- remove inappropriate configuration module entry in metadata
36
- add debug info

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ workspace.clientActivated.connect(client => {
2222
workspace.clientAdded.connect(client => {
2323
debug("client", JSON.stringify(client, undefined, 2));
2424

25-
// abort if client is null or not a normal window
26-
if (!client || client.resourceClass == "plasmashell") return;
27-
28-
// abort if client is already on the right screen
29-
if (client.screen == focusedScreen) return;
25+
// abort if client is null, not regeometrizable, or already on right screen
26+
if (!client
27+
|| !(client.resizeable && client.moveable && client.moveableAcrossScreens)
28+
|| client.screen == focusedScreen)
29+
return;
3030

3131
// move client to focused screen
3232
debug("sending client", client.caption, "to focused screen", focusedScreen);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Comment[nl]=Open nieuwe vensters altijd op het scherm met een gefocust venster
1212
Icon=preferences-system-windows
1313

1414
X-KDE-PluginInfo-Name=alwaysopenonfocusedscreen
15-
X-KDE-PluginInfo-Version=2.7
15+
X-KDE-PluginInfo-Version=3.0
1616
X-KDE-PluginInfo-Author=Natalie Clarius
1717
X-KDE-PluginInfo-Email[email protected]
1818
X-KDE-PluginInfo-License=GPL v3.0

0 commit comments

Comments
 (0)