From b75e14de183dd1b29a729119cd4aac38a5764890 Mon Sep 17 00:00:00 2001 From: Natalie Clarius Date: Fri, 27 May 2022 16:24:11 +0200 Subject: [PATCH] fix order among windows of an application group sometimes not applied correctly --- CHANGELOG.bbcode | 4 ++++ CHANGELOG.md | 3 +++ README.bbcode | 2 +- README.md | 2 +- ...pt => application-switcher_v1.4.kwinscript | Bin 18978 -> 18987 bytes contents/code/main.js | 2 +- metadata.desktop | 2 +- 7 files changed, 11 insertions(+), 4 deletions(-) rename application-switcher_v1.3.kwinscript => application-switcher_v1.4.kwinscript (72%) diff --git a/CHANGELOG.bbcode b/CHANGELOG.bbcode index 1aaa633..a159032 100644 --- a/CHANGELOG.bbcode +++ b/CHANGELOG.bbcode @@ -1,3 +1,7 @@ +[h2]v1.4[/h2] +[list]\n[*] fix order among windows of an application group sometimes not applied correctly +[/list] + [h2]v1.3[/h2] [list]\n[*] fix order among windows of an application group sometimes not applied correctly [/list] diff --git a/CHANGELOG.md b/CHANGELOG.md index bd4b599..e97dd11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.4 +- fix order among windows of an application group sometimes not applied correctly + ## v1.3 - fix order among windows of an application group sometimes not applied correctly diff --git a/README.bbcode b/README.bbcode index e28c3d7..6bc773d 100644 --- a/README.bbcode +++ b/README.bbcode @@ -1,6 +1,6 @@ Automatically raises all other visible windows of the same application together when activating one of them, effectively creating application groups to task-switch between. -[b]Please make sure to install the most recent version (v1.3) and to not use Discover for installation.[/b] For more information on installation, setup and usage as well as any requests, please visit [url=https://github.com/nclarius/kwin-application-switcher]the GitHub page[/url]. +[b]Please make sure to install the most recent version (v1.4) and to not use Discover for installation.[/b] For more information on installation, setup and usage as well as any requests, please visit [url=https://github.com/nclarius/kwin-application-switcher]the GitHub page[/url]. This extension gives rise to an application-centric task switching workflow as known from environments such as GNOME or MacOS, where an application’s windows are treated as a group, and task switching can take place at two levels: one mode for switching applications and one mode for switching between windows of an application. diff --git a/README.md b/README.md index ec99c24..1647042 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Seen in the screencast: Switching from Konsole back to Dolphin also brings the o ### Installation via graphical interface -**Please make sure to select the most recent version (v1.3)** in the installation process. +**Please make sure to select the most recent version (v1.4)** in the installation process. A [bug](https://bugs.kde.org/show_bug.cgi?id=453521) in Discover causes a wrong version to be installed, so using the installation module in System Settings instead is recommended. diff --git a/application-switcher_v1.3.kwinscript b/application-switcher_v1.4.kwinscript similarity index 72% rename from application-switcher_v1.3.kwinscript rename to application-switcher_v1.4.kwinscript index 5f817fcb29651aa88265aec80344b3a66eca49a5..f8594a8015da488e0ecbd5c7f66ab35286146559 100644 GIT binary patch delta 4021 zcmaJ^WmFVgx1J$KKvF_t=tczTE@1$1=oCG;rf-|xNOz3bi|`>b{LS?8Sf>}Q|7&y$}7EKdTWMDV}Pp%TPkpl!qlBT^D# z-h^x(;%{>(*tOO4-6MdG&e4JcL3G;{x}i=w+}P^YXSFFe&P$bN6w_Z#9cgc;GTnQB zrDz!!KjJg*b^M4ppeMk$Tdu8zh3J@7?*Tr+EdT%j0{pr@T|Af*fYv5thyT1j{H(h0tq9zzDf3!Uu5q1krltwiZWy6pSd?@eD!wcvJTHqF3;sHxYubC0hMiWH?%g#s$Z8hh4GdbLPC)+SGi%u4qTh zQVuOF)!r^FCR?-sF_*~S@zw#RZ2P2myK|dimReQ2JsGs4TK}LIkJV+mijB?Pj4Y|{ z-cdc5t_c;y(koX;w)d5Pe8e~Fq%>IJcDt~Z51;?SvbSR!xk(uS3Fhw#lH4Rw^@j)fMOYSi_S^nPQu()5Mt?97yJYj%aw&)TPM z$V+IBdvX?f*vD@#BTLH9PX1gfJNcf3Uq-{!H;2pe_te_0{2^cc*zvIOuD9ZVpHk6dp{X6(=A3C;=b*54!qFeOAQe&grb+q4C0DJ z=D*aw-D(3rn!HnRXhORn-?bmqJ3Bd5pt016)yb3*sVQPFbx)RP>0pOcVXVxQf{!lG zC4jZw`XAwKvkRz-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qK)7bNnv5#7x({d7FbK zij?ohM~Uzf<@#(QgjZ@amPg&#il2D+3Cd(aEE)VwH2Jo5t}{bF z1F!uk;22r_E1-6ZAo7k0?_i}ni##pM^%_+Q_v zhGu8Eui59dA0MxO8+v%4H%XfIB0(ybE0>e&#j};^eO8ib9V^+KS-OGVSxsS2iQOhP zUj@}gJ8@R@Ld|8K8gfd!eDBLm24KGsEv)zpc<#~?8tIGg7d}}L_)_gv!h%j4g;W&bx_0&#*gbk&S>v?EFwl>YX{62rm5`M+QQI{9z& z(UUN!$U91uX1pz|)PFT*aTD>JL<{NU?kTes`o4v`CJc~4DPt+ILw=9l04m(VScdanwU7Lc{S=9tTp!Z)h@Rc z%ynN?ro+%1)lbPay=^}#kt<<_Y9!QJkmzhs>Fa-{nrDiu99^V(jAXZ#C>TEassz69 z3^Rhbf?;I6OiWjl)Bt6rllT{W#i;7Y2w&jWe}g!`{RWxngNY!-{{=>~b*>Tr2BH{x z1SbZsQ}hp3O4Ws4yzzzL5A#ob#p%NSX3}27^q(xjC?Ev?7V-W^xWOP0J?P4X0ifSo jP|1UHW)Oy#g^`T(PZIsPc>)0e|G?}aq{sm6i-Z3MM`l`m diff --git a/contents/code/main.js b/contents/code/main.js index 5998e5f..02610ab 100644 --- a/contents/code/main.js +++ b/contents/code/main.js @@ -114,11 +114,11 @@ workspace.clientActivated.connect(active => { debug("previous app", getPrevActiveApp()); if (getApp(active) != getPrevActiveApp()) { debug("app switched"); + setPrevActiveApp(active); // auto-raise other windows of same application for (let window of getAppGroup(active)) { debug("auto-raising", window.caption); workspace.activeClient = window; } - setPrevActiveApp(active); } }); diff --git a/metadata.desktop b/metadata.desktop index 80ef7bf..9353dcf 100644 --- a/metadata.desktop +++ b/metadata.desktop @@ -8,7 +8,7 @@ Comment=Collectively raises all windows of the same application when switching t Icon=preferences-system-windows X-KDE-PluginInfo-Name=applicationswitcher -X-KDE-PluginInfo-Version=1.3 +X-KDE-PluginInfo-Version=1.4 X-KDE-PluginInfo-Author=Natalie Clarius X-KDE-PluginInfo-Email=natalie_clarius@yahoo.de X-KDE-PluginInfo-License=GPLv3.0