main: Use Params for optional parameters to pushModal()
As the number of optional parameters grows, it gets more convenient to use Params instead of passing in a lot of undefined/null/0 values. https://bugzilla.gnome.org/show_bug.cgi?id=688202
This commit is contained in:
@ -172,7 +172,7 @@ const AltTabPopup = new Lang.Class({
|
||||
|
||||
if (!Main.pushModal(this.actor)) {
|
||||
// Probably someone else has a pointer grab, try again with keyboard only
|
||||
if (!Main.pushModal(this.actor, global.get_current_time(), Meta.ModalOptions.POINTER_ALREADY_GRABBED)) {
|
||||
if (!Main.pushModal(this.actor, { options: Meta.ModalOptions.POINTER_ALREADY_GRABBED })) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user