Skip to content

Commit 82e80b1

Browse files
lenemterdanirabbit
andauthored
Remove destroy effect for menus (#2371)
Co-authored-by: Danielle Foré <[email protected]>
1 parent 48dd42c commit 82e80b1

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

data/gala.metainfo.xml.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@
4848
<issue url="https://github.com/elementary/gala/issues/1235">Overview window title should follow keyboard focus</issue>
4949
<issue url="https://github.com/elementary/gala/issues/1661">Better post-screenshot animation</issue>
5050
<issue url="https://github.com/elementary/gala/issues/2114">Wrong context menu placement</issue>
51+
<issue url="https://github.com/elementary/gala/issues/2172">Override redirect Popup menu type window under Xwayland can not be displayed on the second XMapWindow</issue>
5152
<issue url="https://github.com/elementary/gala/issues/2199">Swiping in the multitasking view can close applications</issue>
5253
<issue url="https://github.com/elementary/gala/issues/2260">Ghost of window on another workspace appears when cancelling workspace swipe</issue>
5354
<issue url="https://github.com/elementary/gala/issues/2267">Dock crash may crash Gala</issue>
5455
<issue url="https://github.com/elementary/gala/issues/2279">Can't reveal dock when animations are disabled</issue>
5556
<issue url="https://github.com/elementary/gala/issues/2294">Unlocking firewall settings leads to crash</issue>
5657
<issue url="https://github.com/elementary/gala/issues/2341">Lutris Flatpak crashes gala with GE setup</issue>
58+
<issue url="https://github.com/elementary/gala/issues/2366">Menus only show once</issue>
5759
<issue url="https://github.com/elementary/portals/issues/97">False detection of "background activity" for some Flatpak apps</issue>
5860
</issues>
5961
</release>

src/WindowManager.vala

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,31 +1471,6 @@ namespace Gala {
14711471
actor.opacity = 0U;
14721472
actor.restore_easing_state ();
14731473

1474-
ulong destroy_handler_id = 0UL;
1475-
destroy_handler_id = actor.transitions_completed.connect (() => {
1476-
actor.disconnect (destroy_handler_id);
1477-
destroying.remove (actor);
1478-
destroy_completed (actor);
1479-
});
1480-
1481-
break;
1482-
case Meta.WindowType.MENU:
1483-
case Meta.WindowType.DROPDOWN_MENU:
1484-
case Meta.WindowType.POPUP_MENU:
1485-
var duration = AnimationDuration.MENU_MAP;
1486-
if (duration == 0) {
1487-
destroy_completed (actor);
1488-
return;
1489-
}
1490-
1491-
destroying.add (actor);
1492-
actor.save_easing_state ();
1493-
actor.set_easing_mode (Clutter.AnimationMode.EASE_OUT_QUAD);
1494-
actor.set_easing_duration (duration);
1495-
actor.set_scale (0.8f, 0.8f);
1496-
actor.opacity = 0U;
1497-
actor.restore_easing_state ();
1498-
14991474
ulong destroy_handler_id = 0UL;
15001475
destroy_handler_id = actor.transitions_completed.connect (() => {
15011476
actor.disconnect (destroy_handler_id);

0 commit comments

Comments
 (0)