diff --git a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml index 54bca26..138b889 100644 --- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml +++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml @@ -871,7 +871,7 @@ Prefix to use for hotkeys You can choose between Super or SuperAlt as the prefix for hotkeys. - + false Show overlay on secondary monitors diff --git a/src/overview.js b/src/overview.js index a315414..f456d28 100644 --- a/src/overview.js +++ b/src/overview.js @@ -430,14 +430,17 @@ export const Overview = class { [SETTINGS, 'changed::hot-keys', this._checkHotkeysOptions.bind(this)], [ SETTINGS, - 'changed::hotkeys-overlay-combo', + [ + 'changed::hotkeys-overlay-combo', + 'changed::shortcut-overlay-on-secondary', + ], () => { if ( SETTINGS.get_boolean('hot-keys') && SETTINGS.get_string('hotkeys-overlay-combo') === 'ALWAYS' ) this._toggleHotkeysNumberOverlay(true) - else this._toggleHotkeysNumberOverlay(false) + else this._toggleHotkeysNumberOverlay(false, true) }, ], [SETTINGS, 'changed::shortcut-num-keys', () => this._resetHotkeys()], @@ -493,11 +496,11 @@ export const Overview = class { ]) } - _toggleHotkeysNumberOverlay(show) { + _toggleHotkeysNumberOverlay(show, reset) { // this.taskbar is the primary taskbar this.taskbar.toggleHotkeysNumberOverlay(show) - if (SETTINGS.get_boolean('overlay-on-secondary-switch')) { + if (reset || SETTINGS.get_boolean('shortcut-overlay-on-secondary')) { // on secondary panels, show the overlay on icons matching the ones // found on the primary panel (see Taksbar.hotkeyAppNumbers) this._panelManager.allPanels.forEach((p) => { diff --git a/src/prefs.js b/src/prefs.js index 0fa0812..31ce52b 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -2789,7 +2789,7 @@ const Preferences = class { }) this._settings.bind( - 'overlay-on-secondary-switch', + 'shortcut-overlay-on-secondary', this._builder.get_object('overlay_on_secondary_switch'), 'active', Gio.SettingsBindFlags.DEFAULT, @@ -3075,7 +3075,7 @@ const Preferences = class { if (!scaleInfo.manualConnect) connectValueChanged(scaleObj, scaleInfo) scaleObj.set_format_value_func((scale, value) => { - return `${value} ${scaleInfo.unit || 'px'}` + return `${value * (factor || 1)} ${scaleInfo.unit || 'px'}` }) // Corrent for rtl languages