2 Commits
68.2.3 ... 68.4

Author SHA1 Message Date
Artyom Zorin
216d932ccc Bump to version 68.4 2025-07-31 20:01:46 +01:00
Artyom Zorin
f6c8dd38ce Bump to version 68.3 2025-07-07 13:00:30 +01:00
5 changed files with 27 additions and 29 deletions

12
debian/changelog vendored
View File

@@ -1,3 +1,15 @@
gnome-shell-extension-zorin-taskbar (68.4) noble; urgency=medium
* Applied monitor selection and reset geometry fixes
-- Artyom Zorin <azorin@zoringroup.com> Thu, 31 Jul 2025 19:40:58 +0100
gnome-shell-extension-zorin-taskbar (68.3) noble; urgency=medium
* Removed code to handle overview startup animation
-- Artyom Zorin <azorin@zoringroup.com> Mon, 07 Jul 2025 12:56:41 +0100
gnome-shell-extension-zorin-taskbar (68.2.3) noble; urgency=medium
* Fixed logic error when adjusting panel menu buttons

View File

@@ -54,8 +54,6 @@ export default class ZorinTaskbarExtension extends Extension {
constructor(metadata) {
super(metadata)
this._realHasOverview = Main.sessionMode.hasOverview
//create an object that persists until gnome-shell is restarted, even if the extension is disabled
PERSISTENTSTORAGE = {}
}
@@ -94,16 +92,6 @@ export default class ZorinTaskbarExtension extends Extension {
// To remove later, try to map settings using monitor indexes to monitor ids
PanelSettings.adjustMonitorSettings(SETTINGS)
Main.layoutManager.startInOverview = false
if (Main.layoutManager._startingUp) {
Main.sessionMode.hasOverview = false
startupCompleteHandler = Main.layoutManager.connect(
'startup-complete',
() => (Main.sessionMode.hasOverview = this._realHasOverview),
)
}
this.enableGlobalStyles()
let completeEnable = () => {
@@ -154,8 +142,6 @@ export default class ZorinTaskbarExtension extends Extension {
Main.layoutManager.disconnect(startupCompleteHandler)
startupCompleteHandler = null
}
Main.sessionMode.hasOverview = this._realHasOverview
}
resetGlobalStyles() {

View File

@@ -375,8 +375,10 @@ export const Panel = GObject.registerClass(
this.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS)
if (!Main.layoutManager._startingUp)
GLib.idle_add(GLib.PRIORITY_LOW, () => {
this._waitResetGeomId = GLib.idle_add(GLib.PRIORITY_LOW, () => {
this._waitResetGeomId = 0
this._resetGeometry()
return GLib.SOURCE_REMOVE
})
}
@@ -387,6 +389,11 @@ export const Panel = GObject.registerClass(
this._timeoutsHandler.destroy()
this._signalsHandler.destroy()
if (this._waitResetGeomId) {
GLib.remove_source(this._waitResetGeomId)
this._waitResetGeomId = 0
}
this.panel.remove_child(this.taskbar.actor)
if (this.intellihide) {

View File

@@ -254,7 +254,9 @@ export const PanelManager = class {
'monitors-changed',
async () => {
if (Main.layoutManager.primaryMonitor) {
await PanelSettings.setMonitorsInfo(SETTINGS)
await PanelSettings.setMonitorsInfo(SETTINGS).catch((e) =>
console.log(e),
)
this._reset()
}
},

View File

@@ -203,7 +203,7 @@ export function setPanelElementPositions(settings, monitorIndex, value) {
setMonitorSetting(settings, 'panel-element-positions', monitorIndex, value)
}
export async function setMonitorsInfo(settings) {
export function setMonitorsInfo(settings) {
return new Promise((resolve, reject) => {
try {
let monitorInfos = []
@@ -211,7 +211,6 @@ export async function setMonitorsInfo(settings) {
proxy.GetCurrentStateRemote((displayInfo, e) => {
if (e) return reject(`Error getting display state: ${e}`)
let gsPrimaryIndex = 0
let ids = {}
//https://gitlab.gnome.org/GNOME/mutter/-/blob/main/data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml#L347
@@ -227,8 +226,6 @@ export async function setMonitorsInfo(settings) {
if (ids[id]) id = connector && !ids[connector] ? connector : i
if (primary) gsPrimaryIndex = i
monitorInfos.push({
id,
product,
@@ -240,7 +237,7 @@ export async function setMonitorsInfo(settings) {
ids[id] = 1
})
_saveMonitors(settings, monitorInfos, gsPrimaryIndex)
_saveMonitors(settings, monitorInfos)
resolve()
})
@@ -264,20 +261,14 @@ export async function setMonitorsInfo(settings) {
})
}
function _saveMonitors(settings, monitorInfos, gsPrimaryIndex) {
function _saveMonitors(settings, monitorInfos) {
/* Commented out as Zorin Taskbar always uses gnome-shell primary monitor
let keyPrimary = 'primary-monitor'
let dtpPrimaryMonitor = settings.get_string(keyPrimary)
// convert previously saved index to monitor id
if (dtpPrimaryMonitor.match(/^\d{1,2}$/) && monitorInfos[dtpPrimaryMonitor])
dtpPrimaryMonitor = monitorInfos[dtpPrimaryMonitor].id
// default to gnome-shell primary monitor
if (!dtpPrimaryMonitor)
dtpPrimaryMonitor = monitorInfos[gsPrimaryIndex]?.id || 0
settings.set_string(keyPrimary, dtpPrimaryMonitor)
settings.set_string(keyPrimary, monitorInfos[dtpPrimaryMonitor].id)
*/
availableMonitors = Object.freeze(monitorInfos)