Include panel margins in overview's allocation

This commit is contained in:
Charles Gagnon
2025-02-20 12:26:39 -05:00
parent fcb3b79c9d
commit 1c3eb3405b
3 changed files with 3 additions and 2 deletions

View File

@@ -82,6 +82,7 @@ export default class DashToPanelExtension extends Extension {
if (donateIconUnixtime && donateIconUnixtime < Date.now() - 10368000000)
SETTINGS.set_string('hide-donate-icon-unixtime', '')
// if new version, display a notification linking to release notes
if (this.metadata.version != SETTINGS.get_int('extension-version')) {
Utils.notify(
_('Dash to panel has been updated!'),

View File

@@ -133,7 +133,7 @@ export const Overview = class {
// The default overview allocation takes into account external
// struts, everywhere but the bottom where the dash is usually fixed anyway.
// If there is a bottom panel under the dash location, give it some space here
box.y2 -= focusedPanel.geom.h
box.y2 -= focusedPanel.geom.outerSize
}
originalAllocate.call(overviewControls, box)

View File

@@ -698,7 +698,7 @@ export const Panel = GObject.registerClass(
if (this.checkIfVertical()) {
this.showAppsIconWrapper.realShowAppsIcon.toggleButton.set_width(
this.geom.w,
this.geom.innerSize,
)
this._refreshVerticalAlloc()
}