summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2019-10-18 23:19:05 +0200
committerFlorian Müllner <fmuellner@gnome.org>2020-01-20 14:46:39 +0100
commitb3db8fc73fafbdece278073e1e3338b448851fff (patch)
tree819b761a31e578b6db75e0b3082c78d573751661
parentaae3789142834cfde0d032bdf3b7f0b00657beba (diff)
downloadgnome-shell-b3db8fc73fafbdece278073e1e3338b448851fff.tar.gz
endSessionDialog: Don't allow focusing inhibitor items
Those items are not interactive, so it doesn't make sense to be able to set key-focus to them, disallow that. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/935
-rw-r--r--js/ui/endSessionDialog.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js
index d9f78de77..df44c935d 100644
--- a/js/ui/endSessionDialog.js
+++ b/js/ui/endSessionDialog.js
@@ -594,8 +594,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
}
_constructListItemForApp(inhibitor, app) {
- let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item',
- can_focus: true });
+ let actor = new St.BoxLayout({ style_class: 'end-session-dialog-app-list-item' });
actor.add(app.create_icon_texture(_ITEM_ICON_SIZE));
let textLayout = new St.BoxLayout({ vertical: true,
@@ -653,8 +652,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
else
userLabelText = userName;
- let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item',
- can_focus: true });
+ let actor = new St.BoxLayout({ style_class: 'end-session-dialog-session-list-item' });
actor.add(avatar);
let nameLabel = new St.Label({ text: userLabelText,