WindowClone: Always add the click action (#1464)

We always want to listen to the click signal.
This commit is contained in:
Corentin Noël 2022-09-27 00:22:56 +02:00 committed by GitHub
parent 23c7edeb0e
commit d9ebac365c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,14 +101,14 @@ public class Gala.WindowClone : Clutter.Actor {
window.notify["maximized-horizontally"].connect (check_shadow_requirements);
window.notify["maximized-vertically"].connect (check_shadow_requirements);
if (overview_mode) {
var click_action = new Clutter.ClickAction ();
click_action.clicked.connect (() => {
actor_clicked (click_action.get_button ());
});
add_action (click_action);
} else {
if (!overview_mode) {
drag_action = new DragDropAction (DragDropActionType.SOURCE, "multitaskingview-window");
drag_action.drag_begin.connect (drag_begin);
drag_action.destination_crossed.connect (drag_destination_crossed);