Skip to content

Commit ad3bcf6

Browse files
authored
Merge branch 'main' into leolost/fix-moving-stacking-order
2 parents 9cea3f1 + 145a3eb commit ad3bcf6

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

po/ja.po

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: noise\n"
99
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
1010
"POT-Creation-Date: 2024-12-18 21:23+0000\n"
11-
"PO-Revision-Date: 2024-11-28 12:16+0000\n"
11+
"PO-Revision-Date: 2024-12-22 20:56+0000\n"
1212
"Last-Translator: Ryo Nakano <[email protected]>\n"
1313
"Language-Team: Japanese <https://l10n.elementary.io/projects/desktop/gala/ja/"
1414
">\n"
@@ -17,7 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20-
"X-Generator: Weblate 5.6.2\n"
20+
"X-Generator: Weblate 5.8.4\n"
2121
"X-Launchpad-Export-Date: 2017-03-02 05:47+0000\n"
2222

2323
#: daemon/DBus.vala:82 daemon-gtk3/BackgroundMenu.vala:11
@@ -127,17 +127,15 @@ msgstr "翻訳の更新"
127127

128128
#: data/gala.metainfo.xml.in:35
129129
msgid "Fixed rare crash when a dock window was killed"
130-
msgstr ""
130+
msgstr "ドックウィンドウが強制終了されると、まれにクラッシュする不具合を修正"
131131

132132
#: data/gala.metainfo.xml.in:36
133133
msgid "Added interactive screenshot shortcut"
134-
msgstr ""
134+
msgstr "対話式スクリーンショットのショートカットを追加"
135135

136136
#: data/gala.metainfo.xml.in:37
137-
#, fuzzy
138-
#| msgid "Fix potential crash when taking screenshots"
139137
msgid "Fixed crash when using tiling shortcuts"
140-
msgstr "スクリーンショットを撮る際に起こりうるクラッシュを修正"
138+
msgstr "ウィンドウを並べるショートカット使用時のクラッシュを修正"
141139

142140
#: data/gala.metainfo.xml.in:56
143141
msgid "Improved shadows performance"

po/uk.po

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: beat-box\n"
99
"Report-Msgid-Bugs-To: https://github.com/elementary/gala/issues\n"
1010
"POT-Creation-Date: 2024-12-18 21:23+0000\n"
11-
"PO-Revision-Date: 2024-11-27 02:16+0000\n"
11+
"PO-Revision-Date: 2024-12-24 00:16+0000\n"
1212
"Last-Translator: Ihor Hordiichuk <[email protected]>\n"
1313
"Language-Team: Ukrainian <https://l10n.elementary.io/projects/desktop/gala/"
1414
"uk/>\n"
@@ -18,7 +18,7 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
2020
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
21-
"X-Generator: Weblate 5.6.2\n"
21+
"X-Generator: Weblate 5.8.4\n"
2222
"X-Launchpad-Export-Date: 2017-02-21 05:47+0000\n"
2323

2424
#: daemon/DBus.vala:82 daemon-gtk3/BackgroundMenu.vala:11
@@ -127,17 +127,15 @@ msgstr "Оновлені переклади"
127127

128128
#: data/gala.metainfo.xml.in:35
129129
msgid "Fixed rare crash when a dock window was killed"
130-
msgstr ""
130+
msgstr "Виправлено рідкісний збій вікна док-станції"
131131

132132
#: data/gala.metainfo.xml.in:36
133133
msgid "Added interactive screenshot shortcut"
134-
msgstr ""
134+
msgstr "Додано інтерактивний ярлик створення знімка екрана"
135135

136136
#: data/gala.metainfo.xml.in:37
137-
#, fuzzy
138-
#| msgid "Fix potential crash when taking screenshots"
139137
msgid "Fixed crash when using tiling shortcuts"
140-
msgstr "Виправлено ймовірність збою під час створення знімків екрана"
138+
msgstr "Виправлено збій під час використання комбінацій клавіш на плитці"
141139

142140
#: data/gala.metainfo.xml.in:56
143141
msgid "Improved shadows performance"

src/Widgets/WindowClone.vala

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ public class Gala.WindowClone : Clutter.Actor {
165165
};
166166
close_button.triggered.connect (close_window);
167167

168-
window_icon = new WindowIcon (window, WINDOW_ICON_SIZE, (int)Math.round (monitor_scale_factor));
168+
window_icon = new WindowIcon (window, WINDOW_ICON_SIZE, (int)Math.round (monitor_scale_factor)) {
169+
visible = !overview_mode
170+
};
169171
window_icon.opacity = 0;
170172
window_icon.set_pivot_point (0.5f, 0.5f);
171173

@@ -340,6 +342,15 @@ public class Gala.WindowClone : Clutter.Actor {
340342
var close_button_alloc = InternalUtils.actor_box_from_rect (close_button_x, -close_button_height * 0.33f, close_button_width, close_button_height);
341343
close_button.allocate (close_button_alloc);
342344

345+
float window_icon_width, window_icon_height;
346+
window_icon.get_preferred_size (null, null, out window_icon_width, out window_icon_height);
347+
348+
var window_icon_x = (box.get_width () - window_icon_width) / 2;
349+
var window_icon_y = box.get_height () - (window_icon_height * 0.75f);
350+
351+
var window_icon_alloc = InternalUtils.actor_box_from_rect (window_icon_x, window_icon_y, window_icon_width, window_icon_height);
352+
window_icon.allocate (window_icon_alloc);
353+
343354
var rect = get_transformed_extents ();
344355
var monitor_index = display.get_monitor_index_for_rect (Mtk.Rectangle.from_graphene_rect (rect, ROUND));
345356
var monitor_scale = display.get_monitor_scale (monitor_index);
@@ -351,19 +362,10 @@ public class Gala.WindowClone : Clutter.Actor {
351362
var window_title_width = window_title_nat_width.clamp (0, window_title_max_width);
352363

353364
float window_title_x = (box.get_width () - window_title_width) / 2;
354-
float window_title_y = box.get_height () - InternalUtils.scale_to_int (WINDOW_ICON_SIZE, monitor_scale) * 0.75f - (window_title_height / 2) - InternalUtils.scale_to_int (18, monitor_scale);
365+
float window_title_y = (window_icon.visible ? window_icon_y : box.get_height ()) - (window_title_height / 2) - InternalUtils.scale_to_int (18, monitor_scale);
355366

356367
var window_title_alloc = InternalUtils.actor_box_from_rect (window_title_x, window_title_y, window_title_width, window_title_height);
357368
window_title.allocate (window_title_alloc);
358-
359-
float window_icon_width, window_icon_height;
360-
window_icon.get_preferred_size (null, null, out window_icon_width, out window_icon_height);
361-
362-
var window_icon_x = (box.get_width () - window_icon_width) / 2;
363-
var window_icon_y = box.get_height () - (window_icon_height * 0.75f);
364-
365-
var window_icon_alloc = InternalUtils.actor_box_from_rect (window_icon_x, window_icon_y, window_icon_width, window_icon_height);
366-
window_icon.allocate (window_icon_alloc);
367369
}
368370

369371
#if HAS_MUTTER45

0 commit comments

Comments
 (0)