From 7f25f1a34de39e747a4b335b520471b48a2090fa Mon Sep 17 00:00:00 2001 From: maboroshin Date: Mon, 20 Mar 2023 14:46:21 +0000 Subject: [PATCH 1/6] Translated using Weblate (Japanese) Currently translated at 81.6% (49 of 60 strings) Translation: Rounded Window Corners/rounded-window-corners Translate-URL: https://hosted.weblate.org/projects/rounded-window-corners/rounded-window-corners/ja/ --- po/ja.po | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/po/ja.po b/po/ja.po index 2663354..e849b1e 100644 --- a/po/ja.po +++ b/po/ja.po @@ -1,19 +1,19 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" -"PO-Revision-Date: 2023-02-06 05:38+0000\n" +"PO-Revision-Date: 2023-03-21 15:37+0000\n" "Last-Translator: maboroshin \n" -"Language-Team: Japanese \n" +"Language-Team: Japanese \n" "Language: ja\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Weblate 4.16-dev\n" +"X-Generator: Weblate 4.16.2-dev\n" #: src/preferences/pages/general.ui:284 msgid "Add Settings Entry in right-click menu of Background" -msgstr "" +msgstr "背景の右クリックメニューに設定項目を追加" #: src/preferences/pages/blacklist.ui:38 src/preferences/pages/custom.ui:38 msgid "Add Window" @@ -64,7 +64,7 @@ msgstr "下" #: src/preferences/pages/blacklist.ts:65 src/preferences/pages/custom.ts:177 msgid "Can't add to list, because it has exists" -msgstr "" +msgstr "既に存在するため、一覧に追加できません" #: src/preferences/widgets/app_row.ts:106 msgid "Can't pick a window window from this position" From 19a8b31a82c6bb09ec6f6db57be604a92bc5d6f7 Mon Sep 17 00:00:00 2001 From: Szymon Kajak Date: Sat, 25 Mar 2023 20:20:02 +0100 Subject: [PATCH 2/6] Added translation using Weblate (Polish) --- po/pl.po | 262 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 po/pl.po diff --git a/po/pl.po b/po/pl.po new file mode 100644 index 0000000..0224db6 --- /dev/null +++ b/po/pl.po @@ -0,0 +1,262 @@ +msgid "" +msgstr "" +"Project-Id-Version: 10\n" +"Report-Msgid-Bugs-To: yilozt@outlook.com\n" +"Language: pl\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/preferences/pages/general.ui:284 +msgid "Add Settings Entry in right-click menu of Background" +msgstr "" + +#: src/preferences/pages/blacklist.ui:38 +#: src/preferences/pages/custom.ui:38 +msgid "Add Window" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:130 +msgid "Always keep rounded corners when window is fullscreen." +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:93 +msgid "Always keep rounded corners when window is maximized or tiled." +msgstr "" + +#: src/preferences/pages/general.ui:10 +msgid "Applications" +msgstr "" + +#: src/preferences/widgets/app-row.ui:92 +msgid "Apply" +msgstr "" + +#: src/preferences/index.ts:17 +msgid "Blacklist" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:87 +msgid "Blur Offset" +msgstr "" + +#: src/preferences/pages/general.ui:201 +#: src/preferences/widgets/reset_dialog.ts:65 +msgid "Border Color" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:70 +#: src/preferences/widgets/rounded-corners-item.ui:19 +msgid "Border Radius" +msgstr "" + +#: src/preferences/pages/general.ui:168 +#: src/preferences/widgets/reset_dialog.ts:64 +msgid "Border Width" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:309 +msgid "Bottom" +msgstr "" + +#: src/preferences/pages/blacklist.ts:65 +#: src/preferences/pages/custom.ts:177 +msgid "Can't add to list, because it has exists" +msgstr "" + +#: src/preferences/widgets/app_row.ts:106 +msgid "Can't pick a window window from this position" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:170 +msgid "Clip paddings of window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:75 +#: src/preferences/widgets/rounded-corners-item.ui:53 +msgid "Corner Smoothing" +msgstr "" + +#: src/preferences/index.ts:22 +msgid "Custom" +msgstr "" + +#: src/preferences/pages/general.ui:107 +msgid "Customize the shadow of the rounded corner window" +msgstr "" + +#: src/preferences/pages/general.ui:304 +msgid "Debug" +msgstr "" + +#: src/preferences/widgets/edit_shadow_window.ts:58 +msgid "Edit Shadow for Rounded Corners Windows" +msgstr "" + +#: src/preferences/pages/custom.ts:189 +msgid "Enable" +msgstr "" + +#: src/preferences/pages/custom.ts:193 +msgid "Enable custom settings for this window" +msgstr "" + +#: src/preferences/pages/general.ui:329 +#: src/preferences/widgets/reset_dialog.ts:66 +msgid "Enable Log" +msgstr "" + +#: src/utils/constants.ts:17 +msgid "Expand this row to pick a window." +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:26 +msgid "Focus Window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:62 +msgid "Focus Window Shadow Style" +msgstr "" + +#: src/preferences/index.ts:12 +msgid "General" +msgstr "" + +#: src/preferences/pages/general.ui:132 +msgid "Global Settings" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:46 +msgid "Horizontal Offset" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:123 +msgid "Keep Rounded Corners when Fullscreen" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:86 +msgid "Keep Rounded Corners when Maximized" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:73 +msgid "Keep Rounded Corners when Maximized or Fullscreen" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:210 +msgid "Left" +msgstr "" + +#: src/preferences/pages/blacklist.ui:14 +msgid "" +"Not all application can works well with rounded corners effects, add them to this list to disable effects.\n" +"\n" +"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:126 +msgid "Opacity" +msgstr "" + +#: src/preferences/pages/general.ui:367 +msgid "Open Reset Preferences Dialog" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:71 +msgid "Padding" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:163 +msgid "Paddings" +msgstr "" + +#: src/preferences/widgets/app-row.ui:77 +msgid "Pick Window to add into list" +msgstr "" + +#: src/preferences/widgets/app-row.ui:36 +msgid "Remove Window from this List" +msgstr "" + +#: src/preferences/pages/general.ui:359 +msgid "Reset Preferences" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:243 +msgid "Right" +msgstr "" + +#: src/utils/constants.ts:21 +msgid "Rounded Corners Settings..." +msgstr "" + +#: src/preferences/pages/general.ui:336 +msgid "Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the log" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:96 +msgid "Select All" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:87 +msgid "Select Items to reset" +msgstr "" + +#: src/preferences/pages/custom.ui:14 +msgid "" +"Setup different clip padding by add window into this list.\n" +"\n" +"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +msgstr "" + +#: src/preferences/pages/general.ui:47 +#: src/preferences/widgets/reset_dialog.ts:60 +msgid "Skip LibAdwaita Applications" +msgstr "" + +#: src/preferences/pages/general.ui:74 +#: src/preferences/widgets/reset_dialog.ts:61 +msgid "Skip LibHandy Applications" +msgstr "" + +#: src/preferences/pages/general.ui:23 +msgid "Some applications written using LibAdwaita or LibHandy already have native rounded corners, so we can skip them through these settings" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:107 +msgid "Spread Radius" +msgstr "" + +#: src/preferences/pages/general.ui:143 +msgid "This settings will try to effects all windows" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:276 +msgid "Top" +msgstr "" + +#: src/preferences/pages/general.ui:247 +msgid "Try to add rounded corners to Kitty Terminal in Wayland" +msgstr "" + +#: src/preferences/pages/general.ui:254 +msgid "Tweak clip paddings for Kitty Terminal" +msgstr "" + +#: src/preferences/pages/general.ui:222 +msgid "Tweaks" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:35 +msgid "Unfocus Window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:63 +msgid "Unfocus Window Shadow Style" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:66 +msgid "Vertical Offset" +msgstr "" + +#: src/preferences/pages/general.ui:101 +msgid "Window Shadow" +msgstr "" From f316054ad2c09c519e112bbc08056f721ba9e726 Mon Sep 17 00:00:00 2001 From: Szymon Kajak Date: Sat, 25 Mar 2023 19:22:31 +0000 Subject: [PATCH 3/6] Translated using Weblate (Polish) Currently translated at 3.3% (2 of 60 strings) Translation: Rounded Window Corners/rounded-window-corners Translate-URL: https://hosted.weblate.org/projects/rounded-window-corners/rounded-window-corners/pl/ --- po/pl.po | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/po/pl.po b/po/pl.po index 0224db6..e3de1af 100644 --- a/po/pl.po +++ b/po/pl.po @@ -2,9 +2,16 @@ msgid "" msgstr "" "Project-Id-Version: 10\n" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" +"PO-Revision-Date: 2023-03-26 19:41+0000\n" +"Last-Translator: Szymon Kajak \n" +"Language-Team: Polish \n" "Language: pl\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.17-dev\n" #: src/preferences/pages/general.ui:284 msgid "Add Settings Entry in right-click menu of Background" @@ -13,11 +20,11 @@ msgstr "" #: src/preferences/pages/blacklist.ui:38 #: src/preferences/pages/custom.ui:38 msgid "Add Window" -msgstr "" +msgstr "Dodaj okno" #: src/preferences/widgets/rounded-corners-item.ui:130 msgid "Always keep rounded corners when window is fullscreen." -msgstr "" +msgstr "Zawsze zachowuj, gdy okno jest w trybie pełnoekranowym." #: src/preferences/widgets/rounded-corners-item.ui:93 msgid "Always keep rounded corners when window is maximized or tiled." From 093c43e5ad604fc81010a1052a610ad1d8c3185c Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 26 Mar 2023 23:15:39 +0200 Subject: [PATCH 4/6] Added translation using Weblate (Ukrainian) --- po/uk.po | 262 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 262 insertions(+) create mode 100644 po/uk.po diff --git a/po/uk.po b/po/uk.po new file mode 100644 index 0000000..6ac7f06 --- /dev/null +++ b/po/uk.po @@ -0,0 +1,262 @@ +msgid "" +msgstr "" +"Project-Id-Version: 10\n" +"Report-Msgid-Bugs-To: yilozt@outlook.com\n" +"Language: uk\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: src/preferences/pages/general.ui:284 +msgid "Add Settings Entry in right-click menu of Background" +msgstr "" + +#: src/preferences/pages/blacklist.ui:38 +#: src/preferences/pages/custom.ui:38 +msgid "Add Window" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:130 +msgid "Always keep rounded corners when window is fullscreen." +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:93 +msgid "Always keep rounded corners when window is maximized or tiled." +msgstr "" + +#: src/preferences/pages/general.ui:10 +msgid "Applications" +msgstr "" + +#: src/preferences/widgets/app-row.ui:92 +msgid "Apply" +msgstr "" + +#: src/preferences/index.ts:17 +msgid "Blacklist" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:87 +msgid "Blur Offset" +msgstr "" + +#: src/preferences/pages/general.ui:201 +#: src/preferences/widgets/reset_dialog.ts:65 +msgid "Border Color" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:70 +#: src/preferences/widgets/rounded-corners-item.ui:19 +msgid "Border Radius" +msgstr "" + +#: src/preferences/pages/general.ui:168 +#: src/preferences/widgets/reset_dialog.ts:64 +msgid "Border Width" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:309 +msgid "Bottom" +msgstr "" + +#: src/preferences/pages/blacklist.ts:65 +#: src/preferences/pages/custom.ts:177 +msgid "Can't add to list, because it has exists" +msgstr "" + +#: src/preferences/widgets/app_row.ts:106 +msgid "Can't pick a window window from this position" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:170 +msgid "Clip paddings of window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:75 +#: src/preferences/widgets/rounded-corners-item.ui:53 +msgid "Corner Smoothing" +msgstr "" + +#: src/preferences/index.ts:22 +msgid "Custom" +msgstr "" + +#: src/preferences/pages/general.ui:107 +msgid "Customize the shadow of the rounded corner window" +msgstr "" + +#: src/preferences/pages/general.ui:304 +msgid "Debug" +msgstr "" + +#: src/preferences/widgets/edit_shadow_window.ts:58 +msgid "Edit Shadow for Rounded Corners Windows" +msgstr "" + +#: src/preferences/pages/custom.ts:189 +msgid "Enable" +msgstr "" + +#: src/preferences/pages/custom.ts:193 +msgid "Enable custom settings for this window" +msgstr "" + +#: src/preferences/pages/general.ui:329 +#: src/preferences/widgets/reset_dialog.ts:66 +msgid "Enable Log" +msgstr "" + +#: src/utils/constants.ts:17 +msgid "Expand this row to pick a window." +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:26 +msgid "Focus Window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:62 +msgid "Focus Window Shadow Style" +msgstr "" + +#: src/preferences/index.ts:12 +msgid "General" +msgstr "" + +#: src/preferences/pages/general.ui:132 +msgid "Global Settings" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:46 +msgid "Horizontal Offset" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:123 +msgid "Keep Rounded Corners when Fullscreen" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:86 +msgid "Keep Rounded Corners when Maximized" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:73 +msgid "Keep Rounded Corners when Maximized or Fullscreen" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:210 +msgid "Left" +msgstr "" + +#: src/preferences/pages/blacklist.ui:14 +msgid "" +"Not all application can works well with rounded corners effects, add them to this list to disable effects.\n" +"\n" +"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:126 +msgid "Opacity" +msgstr "" + +#: src/preferences/pages/general.ui:367 +msgid "Open Reset Preferences Dialog" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:71 +msgid "Padding" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:163 +msgid "Paddings" +msgstr "" + +#: src/preferences/widgets/app-row.ui:77 +msgid "Pick Window to add into list" +msgstr "" + +#: src/preferences/widgets/app-row.ui:36 +msgid "Remove Window from this List" +msgstr "" + +#: src/preferences/pages/general.ui:359 +msgid "Reset Preferences" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:243 +msgid "Right" +msgstr "" + +#: src/utils/constants.ts:21 +msgid "Rounded Corners Settings..." +msgstr "" + +#: src/preferences/pages/general.ui:336 +msgid "Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the log" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:96 +msgid "Select All" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:87 +msgid "Select Items to reset" +msgstr "" + +#: src/preferences/pages/custom.ui:14 +msgid "" +"Setup different clip padding by add window into this list.\n" +"\n" +"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +msgstr "" + +#: src/preferences/pages/general.ui:47 +#: src/preferences/widgets/reset_dialog.ts:60 +msgid "Skip LibAdwaita Applications" +msgstr "" + +#: src/preferences/pages/general.ui:74 +#: src/preferences/widgets/reset_dialog.ts:61 +msgid "Skip LibHandy Applications" +msgstr "" + +#: src/preferences/pages/general.ui:23 +msgid "Some applications written using LibAdwaita or LibHandy already have native rounded corners, so we can skip them through these settings" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:107 +msgid "Spread Radius" +msgstr "" + +#: src/preferences/pages/general.ui:143 +msgid "This settings will try to effects all windows" +msgstr "" + +#: src/preferences/widgets/rounded-corners-item.ui:276 +msgid "Top" +msgstr "" + +#: src/preferences/pages/general.ui:247 +msgid "Try to add rounded corners to Kitty Terminal in Wayland" +msgstr "" + +#: src/preferences/pages/general.ui:254 +msgid "Tweak clip paddings for Kitty Terminal" +msgstr "" + +#: src/preferences/pages/general.ui:222 +msgid "Tweaks" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:35 +msgid "Unfocus Window" +msgstr "" + +#: src/preferences/widgets/reset_dialog.ts:63 +msgid "Unfocus Window Shadow Style" +msgstr "" + +#: src/preferences/widgets/edit-shadow-window.ui:66 +msgid "Vertical Offset" +msgstr "" + +#: src/preferences/pages/general.ui:101 +msgid "Window Shadow" +msgstr "" From 2d0f1be05e95128e87823bc4fed6f707856012fc Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 26 Mar 2023 22:08:41 +0000 Subject: [PATCH 5/6] Translated using Weblate (Ukrainian) Currently translated at 100.0% (60 of 60 strings) Translation: Rounded Window Corners/rounded-window-corners Translate-URL: https://hosted.weblate.org/projects/rounded-window-corners/rounded-window-corners/uk/ --- po/uk.po | 133 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 78 insertions(+), 55 deletions(-) diff --git a/po/uk.po b/po/uk.po index 6ac7f06..03e6eba 100644 --- a/po/uk.po +++ b/po/uk.po @@ -2,148 +2,157 @@ msgid "" msgstr "" "Project-Id-Version: 10\n" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" +"PO-Revision-Date: 2023-03-27 22:37+0000\n" +"Last-Translator: Dan \n" +"Language-Team: Ukrainian \n" "Language: uk\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.17-dev\n" #: src/preferences/pages/general.ui:284 msgid "Add Settings Entry in right-click menu of Background" -msgstr "" +msgstr "Додати запис налаштувань у меню фону правою кнопкою миші" #: src/preferences/pages/blacklist.ui:38 #: src/preferences/pages/custom.ui:38 msgid "Add Window" -msgstr "" +msgstr "Додати вікно" #: src/preferences/widgets/rounded-corners-item.ui:130 msgid "Always keep rounded corners when window is fullscreen." -msgstr "" +msgstr "Завжди зберігати заокруглені кути, коли вікно розгорнуто на весь екран." #: src/preferences/widgets/rounded-corners-item.ui:93 msgid "Always keep rounded corners when window is maximized or tiled." msgstr "" +"Завжди зберігати заокруглені кути, коли вікно максимально збільшене або " +"згорнуте." #: src/preferences/pages/general.ui:10 msgid "Applications" -msgstr "" +msgstr "Застосунки" #: src/preferences/widgets/app-row.ui:92 msgid "Apply" -msgstr "" +msgstr "Застосувати" #: src/preferences/index.ts:17 msgid "Blacklist" -msgstr "" +msgstr "Чорний список" #: src/preferences/widgets/edit-shadow-window.ui:87 msgid "Blur Offset" -msgstr "" +msgstr "Зсув розмиття" #: src/preferences/pages/general.ui:201 #: src/preferences/widgets/reset_dialog.ts:65 msgid "Border Color" -msgstr "" +msgstr "Колір рамки" #: src/preferences/widgets/reset_dialog.ts:70 #: src/preferences/widgets/rounded-corners-item.ui:19 msgid "Border Radius" -msgstr "" +msgstr "Радіус рамки" #: src/preferences/pages/general.ui:168 #: src/preferences/widgets/reset_dialog.ts:64 msgid "Border Width" -msgstr "" +msgstr "Ширина рамки" #: src/preferences/widgets/rounded-corners-item.ui:309 msgid "Bottom" -msgstr "" +msgstr "Низ" #: src/preferences/pages/blacklist.ts:65 #: src/preferences/pages/custom.ts:177 msgid "Can't add to list, because it has exists" -msgstr "" +msgstr "Не можна додати до списку, тому що він вже існує" #: src/preferences/widgets/app_row.ts:106 msgid "Can't pick a window window from this position" -msgstr "" +msgstr "Не можу вибрати вікно з цієї позиції" #: src/preferences/widgets/rounded-corners-item.ui:170 msgid "Clip paddings of window" -msgstr "" +msgstr "Обрізати поля вікна" #: src/preferences/widgets/reset_dialog.ts:75 #: src/preferences/widgets/rounded-corners-item.ui:53 msgid "Corner Smoothing" -msgstr "" +msgstr "Згладжування кутів" #: src/preferences/index.ts:22 msgid "Custom" -msgstr "" +msgstr "Власний" #: src/preferences/pages/general.ui:107 msgid "Customize the shadow of the rounded corner window" -msgstr "" +msgstr "Налаштувати тінь заокругленого кутового вікна" #: src/preferences/pages/general.ui:304 msgid "Debug" -msgstr "" +msgstr "Налагодження" #: src/preferences/widgets/edit_shadow_window.ts:58 msgid "Edit Shadow for Rounded Corners Windows" -msgstr "" +msgstr "Редагувати тіні для вікон із заокругленими кутами" #: src/preferences/pages/custom.ts:189 msgid "Enable" -msgstr "" +msgstr "Увімкнути" #: src/preferences/pages/custom.ts:193 msgid "Enable custom settings for this window" -msgstr "" +msgstr "Увімкнути власні налаштування для цього вікна" #: src/preferences/pages/general.ui:329 #: src/preferences/widgets/reset_dialog.ts:66 msgid "Enable Log" -msgstr "" +msgstr "Увімкнути журнал" #: src/utils/constants.ts:17 msgid "Expand this row to pick a window." -msgstr "" +msgstr "Розгорніть цей рядок, щоб вибрати вікно." #: src/preferences/widgets/edit-shadow-window.ui:26 msgid "Focus Window" -msgstr "" +msgstr "Сфокусувати вікно" #: src/preferences/widgets/reset_dialog.ts:62 msgid "Focus Window Shadow Style" -msgstr "" +msgstr "Стиль тіні вибраного вікна" #: src/preferences/index.ts:12 msgid "General" -msgstr "" +msgstr "Загальне" #: src/preferences/pages/general.ui:132 msgid "Global Settings" -msgstr "" +msgstr "Глобальні налаштування" #: src/preferences/widgets/edit-shadow-window.ui:46 msgid "Horizontal Offset" -msgstr "" +msgstr "Горизонтальний зсув" #: src/preferences/widgets/rounded-corners-item.ui:123 msgid "Keep Rounded Corners when Fullscreen" -msgstr "" +msgstr "Зберігати заокруглені кути в повноекранному режимі" #: src/preferences/widgets/rounded-corners-item.ui:86 msgid "Keep Rounded Corners when Maximized" -msgstr "" +msgstr "Зберігати заокруглені кути при збільшенні" #: src/preferences/widgets/reset_dialog.ts:73 msgid "Keep Rounded Corners when Maximized or Fullscreen" -msgstr "" +msgstr "Зберігати заокруглені кути при збільшенні та в повноекранному режимі" #: src/preferences/widgets/rounded-corners-item.ui:210 msgid "Left" -msgstr "" +msgstr "Ліворуч" #: src/preferences/pages/blacklist.ui:14 msgid "" @@ -151,54 +160,61 @@ msgid "" "\n" "The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." msgstr "" +"Не всі застосунки можуть добре працювати з ефектами заокруглених кутів, " +"додайте їх до цього списку, щоб вимкнути ефекти.\n" +"\n" +"Елемент списку є екземпляром властивості WM_CLASS з вікном. Ви можете " +"вибрати вікно, щоб додати його до цього списку." #: src/preferences/widgets/edit-shadow-window.ui:126 msgid "Opacity" -msgstr "" +msgstr "Непрозорість" #: src/preferences/pages/general.ui:367 msgid "Open Reset Preferences Dialog" -msgstr "" +msgstr "Відкрити діалогове вікно скидання налаштувань" #: src/preferences/widgets/reset_dialog.ts:71 msgid "Padding" -msgstr "" +msgstr "Відступ" #: src/preferences/widgets/rounded-corners-item.ui:163 msgid "Paddings" -msgstr "" +msgstr "Відступи" #: src/preferences/widgets/app-row.ui:77 msgid "Pick Window to add into list" -msgstr "" +msgstr "Виберіть вікно, щоб додати до списку" #: src/preferences/widgets/app-row.ui:36 msgid "Remove Window from this List" -msgstr "" +msgstr "Видалити вікно з цього списку" #: src/preferences/pages/general.ui:359 msgid "Reset Preferences" -msgstr "" +msgstr "Скинути налаштування" #: src/preferences/widgets/rounded-corners-item.ui:243 msgid "Right" -msgstr "" +msgstr "Праворуч" #: src/utils/constants.ts:21 msgid "Rounded Corners Settings..." -msgstr "" +msgstr "Налаштування заокруглених кутів..." #: src/preferences/pages/general.ui:336 msgid "Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the log" msgstr "" +"Запустіть journalctl -o cat -f /usr/bin/gnome-shell у терміналі, щоб " +"переглянути журнал" #: src/preferences/widgets/reset_dialog.ts:96 msgid "Select All" -msgstr "" +msgstr "Вибрати все" #: src/preferences/widgets/reset_dialog.ts:87 msgid "Select Items to reset" -msgstr "" +msgstr "Виберіть елементи для скидання" #: src/preferences/pages/custom.ui:14 msgid "" @@ -206,57 +222,64 @@ msgid "" "\n" "The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." msgstr "" +"Налаштуйте інший відступ кліпу, додавши вікно до цього списку.\n" +"\n" +"Елемент списку є частиною екземпляра властивості WM_CLASS з вікном. Ви " +"можете вибрати вікно, щоб додати його до цього списку." #: src/preferences/pages/general.ui:47 #: src/preferences/widgets/reset_dialog.ts:60 msgid "Skip LibAdwaita Applications" -msgstr "" +msgstr "Пропустити застосунки LibAdwaita" #: src/preferences/pages/general.ui:74 #: src/preferences/widgets/reset_dialog.ts:61 msgid "Skip LibHandy Applications" -msgstr "" +msgstr "Пропустити застосунки LibHandy" #: src/preferences/pages/general.ui:23 msgid "Some applications written using LibAdwaita or LibHandy already have native rounded corners, so we can skip them through these settings" msgstr "" +"Деякі застосунки, написані за допомогою LibAdwaita або LibHandy, вже мають " +"власні заокруглені кути, тому ми можемо пропустити їх за допомогою цих " +"налаштувань" #: src/preferences/widgets/edit-shadow-window.ui:107 msgid "Spread Radius" -msgstr "" +msgstr "Радіус розповсюдження" #: src/preferences/pages/general.ui:143 msgid "This settings will try to effects all windows" -msgstr "" +msgstr "Ці налаштування намагатимуться вплинути на всі вікна" #: src/preferences/widgets/rounded-corners-item.ui:276 msgid "Top" -msgstr "" +msgstr "Вверх" #: src/preferences/pages/general.ui:247 msgid "Try to add rounded corners to Kitty Terminal in Wayland" -msgstr "" +msgstr "Спробувати додати заокруглені кути до терміналу Kitty у Wayland" #: src/preferences/pages/general.ui:254 msgid "Tweak clip paddings for Kitty Terminal" -msgstr "" +msgstr "Налаштувати внутрішній відступ для терміналу Kitty" #: src/preferences/pages/general.ui:222 msgid "Tweaks" -msgstr "" +msgstr "Твіки" #: src/preferences/widgets/edit-shadow-window.ui:35 msgid "Unfocus Window" -msgstr "" +msgstr "Розфокусувати вікно" #: src/preferences/widgets/reset_dialog.ts:63 msgid "Unfocus Window Shadow Style" -msgstr "" +msgstr "Стиль тіні розфокусованого вікна" #: src/preferences/widgets/edit-shadow-window.ui:66 msgid "Vertical Offset" -msgstr "" +msgstr "Вертикальний зсув" #: src/preferences/pages/general.ui:101 msgid "Window Shadow" -msgstr "" +msgstr "Тінь вікна" From 60c0bbf5e6cfd079a5672ae5d2b992d1cc8b5da7 Mon Sep 17 00:00:00 2001 From: Bomdia Date: Wed, 29 Mar 2023 00:14:47 +0200 Subject: [PATCH 6/6] hide shadow effect for wobbly-compiz-effect --- po/es.po | 4 +- po/ja.po | 4 +- po/nl.po | 4 +- po/pl.po | 27 ++++--- po/rounded-window-corners@yilozt.pot | 2 +- po/ru.po | 4 +- po/uk.po | 30 ++++---- resources/metadata.json | 2 +- src/extension.ts | 45 ++++++------ src/manager/effect_manager.ts | 103 +++++++++++++++++++++++---- 10 files changed, 153 insertions(+), 72 deletions(-) diff --git a/po/es.po b/po/es.po index fde1a7e..d833564 100644 --- a/po/es.po +++ b/po/es.po @@ -3,8 +3,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-02 12:35+0000\n" "Last-Translator: gallegonovato \n" -"Language-Team: Spanish \n" +"Language-Team: Spanish \n" "Language: es\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/po/ja.po b/po/ja.po index e849b1e..818eee9 100644 --- a/po/ja.po +++ b/po/ja.po @@ -3,8 +3,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-21 15:37+0000\n" "Last-Translator: maboroshin \n" -"Language-Team: Japanese \n" +"Language-Team: Japanese \n" "Language: ja\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/po/nl.po b/po/nl.po index f5455c6..ec0f410 100644 --- a/po/nl.po +++ b/po/nl.po @@ -3,8 +3,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-02 12:35+0000\n" "Last-Translator: Heimen Stoffels \n" -"Language-Team: Dutch \n" +"Language-Team: Dutch \n" "Language: nl\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/po/pl.po b/po/pl.po index e3de1af..f542c7c 100644 --- a/po/pl.po +++ b/po/pl.po @@ -4,8 +4,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-26 19:41+0000\n" "Last-Translator: Szymon Kajak \n" -"Language-Team: Polish \n" +"Language-Team: Polish \n" "Language: pl\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -17,8 +17,7 @@ msgstr "" msgid "Add Settings Entry in right-click menu of Background" msgstr "" -#: src/preferences/pages/blacklist.ui:38 -#: src/preferences/pages/custom.ui:38 +#: src/preferences/pages/blacklist.ui:38 src/preferences/pages/custom.ui:38 msgid "Add Window" msgstr "Dodaj okno" @@ -65,8 +64,7 @@ msgstr "" msgid "Bottom" msgstr "" -#: src/preferences/pages/blacklist.ts:65 -#: src/preferences/pages/custom.ts:177 +#: src/preferences/pages/blacklist.ts:65 src/preferences/pages/custom.ts:177 msgid "Can't add to list, because it has exists" msgstr "" @@ -154,9 +152,11 @@ msgstr "" #: src/preferences/pages/blacklist.ui:14 msgid "" -"Not all application can works well with rounded corners effects, add them to this list to disable effects.\n" +"Not all application can works well with rounded corners effects, add them to " +"this list to disable effects.\n" "\n" -"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +"The item of list is instance part of WM_CLASS property with window. You can " +"pick a window to add it into this list." msgstr "" #: src/preferences/widgets/edit-shadow-window.ui:126 @@ -196,7 +196,9 @@ msgid "Rounded Corners Settings..." msgstr "" #: src/preferences/pages/general.ui:336 -msgid "Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the log" +msgid "" +"Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the " +"log" msgstr "" #: src/preferences/widgets/reset_dialog.ts:96 @@ -211,7 +213,8 @@ msgstr "" msgid "" "Setup different clip padding by add window into this list.\n" "\n" -"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +"The item of list is instance part of WM_CLASS property with window. You can " +"pick a window to add it into this list." msgstr "" #: src/preferences/pages/general.ui:47 @@ -225,7 +228,9 @@ msgid "Skip LibHandy Applications" msgstr "" #: src/preferences/pages/general.ui:23 -msgid "Some applications written using LibAdwaita or LibHandy already have native rounded corners, so we can skip them through these settings" +msgid "" +"Some applications written using LibAdwaita or LibHandy already have native " +"rounded corners, so we can skip them through these settings" msgstr "" #: src/preferences/widgets/edit-shadow-window.ui:107 diff --git a/po/rounded-window-corners@yilozt.pot b/po/rounded-window-corners@yilozt.pot index 577bb50..91cee7a 100644 --- a/po/rounded-window-corners@yilozt.pot +++ b/po/rounded-window-corners@yilozt.pot @@ -2,7 +2,7 @@ msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" -"Project-Id-Version: 10\n" +"Project-Id-Version: 12\n" #: src/preferences/pages/general.ui:284 msgid "Add Settings Entry in right-click menu of Background" diff --git a/po/ru.po b/po/ru.po index 6dc8471..c7c7c2e 100644 --- a/po/ru.po +++ b/po/ru.po @@ -3,8 +3,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-09 15:37+0000\n" "Last-Translator: Evgeniy Khramov \n" -"Language-Team: Russian \n" +"Language-Team: Russian \n" "Language: ru\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/po/uk.po b/po/uk.po index 03e6eba..3438d38 100644 --- a/po/uk.po +++ b/po/uk.po @@ -4,8 +4,8 @@ msgstr "" "Report-Msgid-Bugs-To: yilozt@outlook.com\n" "PO-Revision-Date: 2023-03-27 22:37+0000\n" "Last-Translator: Dan \n" -"Language-Team: Ukrainian \n" +"Language-Team: Ukrainian \n" "Language: uk\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -17,14 +17,14 @@ msgstr "" msgid "Add Settings Entry in right-click menu of Background" msgstr "Додати запис налаштувань у меню фону правою кнопкою миші" -#: src/preferences/pages/blacklist.ui:38 -#: src/preferences/pages/custom.ui:38 +#: src/preferences/pages/blacklist.ui:38 src/preferences/pages/custom.ui:38 msgid "Add Window" msgstr "Додати вікно" #: src/preferences/widgets/rounded-corners-item.ui:130 msgid "Always keep rounded corners when window is fullscreen." -msgstr "Завжди зберігати заокруглені кути, коли вікно розгорнуто на весь екран." +msgstr "" +"Завжди зберігати заокруглені кути, коли вікно розгорнуто на весь екран." #: src/preferences/widgets/rounded-corners-item.ui:93 msgid "Always keep rounded corners when window is maximized or tiled." @@ -67,8 +67,7 @@ msgstr "Ширина рамки" msgid "Bottom" msgstr "Низ" -#: src/preferences/pages/blacklist.ts:65 -#: src/preferences/pages/custom.ts:177 +#: src/preferences/pages/blacklist.ts:65 src/preferences/pages/custom.ts:177 msgid "Can't add to list, because it has exists" msgstr "Не можна додати до списку, тому що він вже існує" @@ -156,9 +155,11 @@ msgstr "Ліворуч" #: src/preferences/pages/blacklist.ui:14 msgid "" -"Not all application can works well with rounded corners effects, add them to this list to disable effects.\n" +"Not all application can works well with rounded corners effects, add them to " +"this list to disable effects.\n" "\n" -"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +"The item of list is instance part of WM_CLASS property with window. You can " +"pick a window to add it into this list." msgstr "" "Не всі застосунки можуть добре працювати з ефектами заокруглених кутів, " "додайте їх до цього списку, щоб вимкнути ефекти.\n" @@ -203,7 +204,9 @@ msgid "Rounded Corners Settings..." msgstr "Налаштування заокруглених кутів..." #: src/preferences/pages/general.ui:336 -msgid "Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the log" +msgid "" +"Run journalctl -o cat -f /usr/bin/gnome-shell in terminal to see the " +"log" msgstr "" "Запустіть journalctl -o cat -f /usr/bin/gnome-shell у терміналі, щоб " "переглянути журнал" @@ -220,7 +223,8 @@ msgstr "Виберіть елементи для скидання" msgid "" "Setup different clip padding by add window into this list.\n" "\n" -"The item of list is instance part of WM_CLASS property with window. You can pick a window to add it into this list." +"The item of list is instance part of WM_CLASS property with window. You can " +"pick a window to add it into this list." msgstr "" "Налаштуйте інший відступ кліпу, додавши вікно до цього списку.\n" "\n" @@ -238,7 +242,9 @@ msgid "Skip LibHandy Applications" msgstr "Пропустити застосунки LibHandy" #: src/preferences/pages/general.ui:23 -msgid "Some applications written using LibAdwaita or LibHandy already have native rounded corners, so we can skip them through these settings" +msgid "" +"Some applications written using LibAdwaita or LibHandy already have native " +"rounded corners, so we can skip them through these settings" msgstr "" "Деякі застосунки, написані за допомогою LibAdwaita або LibHandy, вже мають " "власні заокруглені кути, тому ми можемо пропустити їх за допомогою цих " diff --git a/resources/metadata.json b/resources/metadata.json index 0a4b227..c1b5bee 100644 --- a/resources/metadata.json +++ b/resources/metadata.json @@ -2,7 +2,7 @@ "name": "Rounded Window Corners", "description": "Add rounded corners for all windows", "uuid": "rounded-window-corners@yilozt", - "version": "11", + "version": "12", "url": "https://github.com/yilozt/rounded-window-corners", "shell-version": ["40", "41", "42", "43", "44"] } diff --git a/src/extension.ts b/src/extension.ts index 2985056..b9abb8b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,34 +1,31 @@ // imports.gi -import { Point } from '@gi/Graphene' -import * as Clutter from '@gi/Clutter' -import { Settings } from '@gi/Gio' -import { WindowClientType } from '@gi/Meta' +import { Point } from '@gi/Graphene' +import * as Clutter from '@gi/Clutter' +import { Settings } from '@gi/Gio' +import { WindowClientType, Window, WindowActor } from '@gi/Meta' // gnome-shell modules -import { WindowPreview } from '@imports/ui/windowPreview' -import { WorkspaceGroup } from '@imports/ui/workspaceAnimation' -import BackgroundMenu from '@imports/ui/backgroundMenu' -import { layoutManager } from '@imports/ui/main' -import { overview } from '@imports/ui/main' +import { WindowPreview } from '@imports/ui/windowPreview' +import { WorkspaceGroup } from '@imports/ui/workspaceAnimation' +import BackgroundMenu from '@imports/ui/backgroundMenu' +import { layoutManager, overview } from '@imports/ui/main' // local modules -import { constants } from '@me/utils/constants' -import { stackMsg, _log } from '@me/utils/log' -import * as UI from '@me/utils/ui' -import { connections } from '@me/utils/connections' -import { SchemasKeys, settings } from '@me/utils/settings' -import { Services } from '@me/dbus/services' -import { LinearFilterEffect } from '@me/effect/linear_filter_effect' -import { RoundedCornersEffect } from '@me/effect/rounded_corners_effect' -import { init_translations } from '@me/utils/i18n' -import { WindowActorTracker } from '@me/manager/effect_manager' +import { constants } from '@me/utils/constants' +import { stackMsg, _log } from '@me/utils/log' +import * as UI from '@me/utils/ui' +import { connections } from '@me/utils/connections' +import { SchemasKeys, settings } from '@me/utils/settings' +import { Services } from '@me/dbus/services' +import { LinearFilterEffect } from '@me/effect/linear_filter_effect' +import { RoundedCornersEffect } from '@me/effect/rounded_corners_effect' +import { init_translations } from '@me/utils/i18n' +import { WindowActorTracker } from '@me/manager/effect_manager' // types, which will be removed in output -import { RoundedCornersCfg } from '@me/utils/types' -import { ExtensionsWindowActor } from '@me/utils/types' -import { Window, WindowActor } from '@gi/Meta' -import { global } from '@global' -import { registerClass } from '@gi/GObject' +import { RoundedCornersCfg, ExtensionsWindowActor } from '@me/utils/types' +import { global } from '@global' +import { registerClass } from '@gi/GObject' // --------------------------------------------------------------- [end imports] diff --git a/src/manager/effect_manager.ts b/src/manager/effect_manager.ts index 4fc708a..bb0ccfc 100644 --- a/src/manager/effect_manager.ts +++ b/src/manager/effect_manager.ts @@ -1,23 +1,22 @@ // imports.gi -import * as Clutter from '@gi/Clutter' -import * as Graphene from '@gi/Graphene' +import * as Clutter from '@gi/Clutter' +import * as Graphene from '@gi/Graphene' // local modules -import { _log } from '@me/utils/log' -import { settings } from '@me/utils/settings' -import { Connections } from '@me/utils/connections' -import { RoundedCornersManager } from '@me/manager/rounded_corners_manager' +import { _log } from '@me/utils/log' +import { settings } from '@me/utils/settings' +import { Connections } from '@me/utils/connections' +import { RoundedCornersManager } from '@me/manager/rounded_corners_manager' // types, those import statements will be removed in output javascript files. -import { SchemasKeys } from '@me/utils/settings' -import { EffectManager } from '@me/utils/types' -import { ExtensionsWindowActor } from '@me/utils/types' -import { WindowActor, Window } from '@gi/Meta' -import { WM } from '@gi/Shell' -import { global } from '@global' -import * as Gio from '@gi/Gio' -import { Display } from '@gi/Meta' -import { shell_version } from '@me/utils/ui' +import type { SchemasKeys } from '@me/utils/settings' +import { EffectManager, ExtensionsWindowActor } from '@me/utils/types' +import { WindowActor, Window, GrabOp, Display } from '@gi/Meta' +import { WM } from '@gi/Shell' +import { global } from '@global' +import * as Gio from '@gi/Gio' +import { shell_version } from '@me/utils/ui' +import { source_remove, timeout_add } from '@gi/GLib' // --------------------------------------------------------------- [end imports] @@ -30,6 +29,22 @@ export class WindowActorTracker { */ private connections: Connections | null = null + private timeout_ids = { + grabBegin: 0, + grabEnd: 0, + } + + private allowedResizeOp = [ + GrabOp.RESIZING_W, + GrabOp.RESIZING_E, + GrabOp.RESIZING_S, + GrabOp.RESIZING_N, + GrabOp.RESIZING_NW, + GrabOp.RESIZING_NE, + GrabOp.RESIZING_SE, + GrabOp.RESIZING_SW, + ] + // ---------------------------------------------------------- [public methods] private run (exec: (m: EffectManager) => void) { @@ -78,6 +93,30 @@ export class WindowActorTracker { } ) + this.connections.connect ( + global.display, + 'grab-op-begin', + (_: Display, win: Window, op: GrabOp) => + (this.timeout_ids.grabBegin = timeout_add (0, 10, () => { + if (op) { + const actor: WindowActor | null = win.get_compositor_private () + if (actor?.get_effect ('wobbly-compiz-effect')) { + this.run ((m) => m.on_minimize (actor)) + } + } + return false + })) + ) + this.connections.connect ( + global.display, + 'grab-op-end', + (_: Display, win: Window, op: GrabOp) => + (this.timeout_ids.grabEnd = timeout_add (0, 10, () => { + this.grabEnd (win, op) + return false + })) + ) + this.connections.connect ( wm, 'switch-workspace', @@ -149,6 +188,40 @@ export class WindowActorTracker { // Disconnect all signal this.connections?.disconnect_all () this.connections = null + + source_remove (this.timeout_ids.grabBegin) + source_remove (this.timeout_ids.grabEnd) + } + + private grabEnd (window: Window, op: GrabOp) { + if (!op) { + return + } + const actor: ExtensionsWindowActor = window.get_compositor_private () + const effect = actor?.get_effect ('wobbly-compiz-effect') + if (effect) { + this.run ((m) => { + m.on_unminimize (actor) + m.on_focus_changed (actor) + }) + const timer_id = ( + effect as Clutter.Effect & { timerId: Clutter.Timeline } + ).timerId + if (op == GrabOp.MOVING) { + const id = timer_id.connect ('stopped', (source) => { + this.run ((m) => m.on_focus_changed (actor)) + source.disconnect (id) + }) + } + if (this.allowedResizeOp.includes (op)) { + const id = timer_id.connect ('new-frame', (source) => { + if (timer_id.get_progress () > 0.9) { + this.run ((m) => m.on_focus_changed (actor)) + source.disconnect (id) + } + }) + } + } } // ------------------------------------------------------- [private methods]