GNOME Bugzilla – Bug 685855
shield: better lock screen placement with keynav
Last modified: 2012-10-15 20:45:57 UTC
If raising the curtain with the keyboard (esc/return), the login screen is displayed on the monitor where the mouse pointer is. It should show login on the primary monitor in this situation. (See https://live.gnome.org/Boston2012/Multimonitor )
Created attachment 226417 [details] [review] ScreenShield: show the unlock dialog on the primary monitor when using the keyboard Make ModalDialog.open() accept an optional monitor index argument, and pass the primary index when the dialog is activated using ESC or Return.
Review of attachment 226417 [details] [review]: This means that if we unplug a monitor while in the unlock dialog, it won't jump to the new primary monitor. You already introduced a "primary" property for the constraint; why not use that?
Created attachment 226423 [details] [review] ScreenShield: show the unlock dialog on the primary monitor when using the keyboard Make ModalDialog.open() accept an optional "onPrimary" argument, and make it true when the dialog is activated using ESC or Return.
Review of attachment 226423 [details] [review]: ::: js/ui/modalDialog.js @@ +207,3 @@ + this._monitorConstraint.primary = true; + else + this._monitorConstraint.index = global.screen.get_current_monitor(); You need to make MonitorConstraint turn primary off when setting an index, then.
Created attachment 226498 [details] [review] ScreenShield: show the unlock dialog on the primary monitor when using the keyboard Make ModalDialog.open() accept an optional onPrimary argument, and pass it when the dialog is activated using ESC or Return.
Review of attachment 226498 [details] [review]: I'd prefer the layout parts to be a separate patch, but OK.
Attachment 226498 [details] pushed as 48fb16b - ScreenShield: show the unlock dialog on the primary monitor when using the keyboard