altTab: Query the correct monitor's size
We always display the appSwitcher on the primary monitor, so always query for its size rather than that of the focused one.
This commit is contained in:
parent
988b515ad2
commit
f4572eedd0
@ -875,9 +875,9 @@ AppSwitcher.prototype = {
|
|||||||
totalSpacing += this._separator.width + this._list.spacing;
|
totalSpacing += this._separator.width + this._list.spacing;
|
||||||
|
|
||||||
// We just assume the whole screen here due to weirdness happing with the passed width
|
// We just assume the whole screen here due to weirdness happing with the passed width
|
||||||
let focus = global.get_focus_monitor();
|
let primary = global.get_primary_monitor();
|
||||||
let parentPadding = this.actor.get_parent().get_theme_node().get_horizontal_padding();
|
let parentPadding = this.actor.get_parent().get_theme_node().get_horizontal_padding();
|
||||||
let availWidth = focus.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding();
|
let availWidth = primary.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding();
|
||||||
let height = 0;
|
let height = 0;
|
||||||
|
|
||||||
for(let i = 0; i < iconSizes.length; i++) {
|
for(let i = 0; i < iconSizes.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user