mirror of
https://github.com/elementary/gala.git
synced 2024-12-22 16:51:31 +03:00
WindowClone: Always add the click action (#1464)
We always want to listen to the click signal.
This commit is contained in:
parent
23c7edeb0e
commit
d9ebac365c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user