Skip to content

Commit f4acfca

Browse files
committed
better compatibility with Wayland
1 parent 65356d0 commit f4acfca

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

always-open-on-active-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.8[/h2]
26
[list]
37
[*] remove inappropriate configuration module entry in metadata

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+
# v3.0
2+
- better compatibility with Wayland
3+
14
## v2.8
25
- remove inappropriate configuration module entry in metadata
36
- add debug info

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ workspace.clientAdded.connect(client => {
1717
// get active screen
1818
activeScreen = workspace.activeScreen;
1919

20-
// abort if client is null or not a normal window
21-
if (!client || client.dock || client.desktopWindow) return;
22-
23-
// abort if client is already on the right screen
24-
if (client.screen == activeScreen) return;
20+
// abort if client is null, not regeometrizable, or already on right screen
21+
if (!client
22+
|| !(client.resizeable && client.moveable && client.moveableAcrossScreens)
23+
|| client.screen == activeScreen)
24+
return;
2525

2626
// move client to active screen
2727
debug("sending client", client.caption, "to active screen", activeScreen);

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

Lines changed: 1 addition & 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.8
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)