mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
kwin/convergentwindows: Port to kwin api changes
This commit is contained in:
parent
9776714341
commit
203f21d97d
1 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ Item {
|
||||||
target: ShellSettings.Settings
|
target: ShellSettings.Settings
|
||||||
|
|
||||||
function onConvergenceModeEnabledChanged() {
|
function onConvergenceModeEnabledChanged() {
|
||||||
const clients = KWinComponents.Workspace.stackingOrder;
|
const clients = KWinComponents.Workspace.windows;
|
||||||
|
|
||||||
for (let i = 0; i < clients.length; i++) {
|
for (let i = 0; i < clients.length; i++) {
|
||||||
if (clients[i].normalWindow) {
|
if (clients[i].normalWindow) {
|
||||||
|
|
@ -35,7 +35,7 @@ Item {
|
||||||
Connections {
|
Connections {
|
||||||
target: Workspace
|
target: Workspace
|
||||||
|
|
||||||
function onClientAdded(client) {
|
function onWindowAdded(client) {
|
||||||
if (client.normalWindow) {
|
if (client.normalWindow) {
|
||||||
client.interactiveMoveResizeFinished.connect((client) => {
|
client.interactiveMoveResizeFinished.connect((client) => {
|
||||||
root.run(client);
|
root.run(client);
|
||||||
|
|
@ -48,7 +48,7 @@ Item {
|
||||||
// Windows are moved from the external screen
|
// Windows are moved from the external screen
|
||||||
// to the internal screen if the external screen
|
// to the internal screen if the external screen
|
||||||
// is disconnected.
|
// is disconnected.
|
||||||
const clients = KWinComponents.Workspace.stackingOrder;
|
const clients = KWinComponents.Workspace.windows;
|
||||||
|
|
||||||
for (var i = 0; i < clients.length; i++) {
|
for (var i = 0; i < clients.length; i++) {
|
||||||
if (clients[i].normalWindow) {
|
if (clients[i].normalWindow) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue