MultitaskingView: Allow making screenshots of the screen (#1644)

This commit is contained in:
Leo 2023-04-12 00:07:21 +09:00 committed by GitHub
parent ffe31be93d
commit 4ca08a2b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -68,11 +68,11 @@ namespace Gala {
flash_actor.set_background_color (Clutter.Color.get_static (Clutter.StaticColor.WHITE));
flash_actor.set_opacity (0);
flash_actor.transitions_completed.connect ((actor) => {
wm.top_window_group.remove_child (actor);
wm.ui_group.remove_child (actor);
actor.destroy ();
});
wm.top_window_group.add_child (flash_actor);
wm.ui_group.add_child (flash_actor);
flash_actor.add_transition ("flash", transition);
}

View File

@ -835,6 +835,8 @@ namespace Gala {
case "switch-to-workspace-last":
case "zoom-in":
case "zoom-out":
case "screenshot":
case "screenshot-clip":
return false;
default:
break;