diff --git a/data/greeter.metainfo.xml.in b/data/greeter.metainfo.xml.in index 94bfeec57..1f78f1d9a 100644 --- a/data/greeter.metainfo.xml.in +++ b/data/greeter.metainfo.xml.in @@ -47,6 +47,7 @@ Mask corners User mouse settings aren't applied + Clicking in the card but outside of the wallpaper window does not switch the card Reuse mouse settings if only one user exists Some shortcuts to switch keyboard layout does not work on lockscreen Screen reader shortcut doesn't launch diff --git a/src/Cards/UserCard.vala b/src/Cards/UserCard.vala index 408f321be..a737d8542 100644 --- a/src/Cards/UserCard.vala +++ b/src/Cards/UserCard.vala @@ -25,6 +25,7 @@ public class Greeter.UserCard : Greeter.BaseCard { private Pantheon.AccountsService greeter_act; private Pantheon.SettingsDaemon.AccountsService settings_act; + private Gtk.GestureMultiPress click_gesture; private Gtk.Revealer form_revealer; private Gtk.Stack login_stack; private Greeter.PasswordEntry password_entry; @@ -249,13 +250,12 @@ public class Greeter.UserCard : Greeter.BaseCard { return false; }); - card_overlay.button_release_event.connect ((event) => { + click_gesture = new Gtk.GestureMultiPress (this); + click_gesture.pressed.connect ((n_press, x, y) => { if (!show_input) { focus_requested (); password_entry.grab_focus (); } - - return false; }); // This makes all the animations synchonous