Skip to content

Commit a27d6b8

Browse files
committed
ensure adjusting window to screen dimensions is possible
1 parent d4250b3 commit a27d6b8

File tree

9 files changed

+18
-6
lines changed

9 files changed

+18
-6
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v2.2
2+
3+
- ensure adjusting window to screen dimensions is possible
4+
15
## v2.1
26

37
- fix an error with fit window on screen

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workspace.clientAdded.connect(function(client) {
1111
workspace.sendClientToScreen(client, workspace.activeScreen);
1212

1313
// clip and move client into bounds of screen dimensions
14-
if (!client.moveable) return;
14+
if (! (client.moveable && client.resizeable)) return;
1515
area = workspace.clientArea(KWin.WorkArea, client);
1616
// window width/height maximally screen width/height
1717
client.geometry.width = Math.min(client.width, area.width);

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.1
15+
X-KDE-PluginInfo-Version=2.2
1616
X-KDE-PluginInfo-Author=Natalie Clarius
1717
X-KDE-PluginInfo-Email[email protected]
1818
X-KDE-PluginInfo-License=GPL v3.0

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v2.2
2+
3+
- ensure adjusting window to screen dimensions is possible
4+
15
## v2.1
26

37
- fix an error with fit window on screen

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ workspace.clientAdded.connect(function(client) {
1919
workspace.sendClientToScreen(client, focusedScreen);
2020

2121
// clip and move client into bounds of screen dimensions
22-
if (!client.moveable) return;
22+
if (!(client.moveable && client.resizeable)) return;
2323
area = workspace.clientArea(KWin.WorkArea, client);
2424
// window width/height maximally screen width/height
2525
client.geometry.width = Math.min(client.width, area.width);

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.1
15+
X-KDE-PluginInfo-Version=2.2
1616
X-KDE-PluginInfo-Author=Natalie Clarius
1717
X-KDE-PluginInfo-Email[email protected]
1818
X-KDE-PluginInfo-License=GPL v3.0

always-open-on-primary-screen/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v2.2
2+
3+
- ensure adjusting window to screen dimensions is possible
4+
15
## v2.1
26

37
- fix an error with fit window on screen

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workspace.clientAdded.connect(function(client) {
1111
workspace.sendClientToScreen(client, 0);
1212

1313
// clip and move client into bounds of screen dimensions
14-
if (!client.moveable) return;
14+
if (!(client.moveable && client.resizeable)) return;
1515
area = workspace.clientArea(KWin.WorkArea, client);
1616
// window width/height maximally screen width/height
1717
client.geometry.width = Math.min(client.width, area.width);

always-open-on-primary-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 dat is ingesteld als prim
1212
Icon=preferences-system-windows
1313

1414
X-KDE-PluginInfo-Name=alwaysopenonprimaryscreen
15-
X-KDE-PluginInfo-Version=2.1
15+
X-KDE-PluginInfo-Version=2.2
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)