mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-13 15:54:12 +09:00
@@ -78,6 +78,14 @@ export const PanelManager = class {
|
||||
AppDisplay.AppIcon.prototype._setPopupTimeout =
|
||||
AppDisplay.AppIcon.prototype._removeMenuTimeout = this._emptyFunc
|
||||
|
||||
Main.layoutManager.findIndexForActor = (actor) =>
|
||||
'_dtpIndex' in actor
|
||||
? actor._dtpIndex
|
||||
: Layout.LayoutManager.prototype.findIndexForActor.call(
|
||||
Main.layoutManager,
|
||||
actor,
|
||||
)
|
||||
|
||||
if (this.dtpPrimaryMonitor) {
|
||||
this.primaryPanel = this._createPanel(
|
||||
this.dtpPrimaryMonitor,
|
||||
@@ -127,14 +135,6 @@ export const PanelManager = class {
|
||||
)
|
||||
Main.layoutManager._updateHotCorners()
|
||||
|
||||
Main.layoutManager.findIndexForActor = (actor) =>
|
||||
'_dtpIndex' in actor
|
||||
? actor._dtpIndex
|
||||
: Layout.LayoutManager.prototype.findIndexForActor.call(
|
||||
Main.layoutManager,
|
||||
actor,
|
||||
)
|
||||
|
||||
this._forceHotCornerId = SETTINGS.connect(
|
||||
'changed::stockgs-force-hotcorner',
|
||||
() => Main.layoutManager._updateHotCorners(),
|
||||
@@ -670,10 +670,6 @@ export const PanelManager = class {
|
||||
|
||||
Main.layoutManager.addChrome(clipContainer, { affectsInputRegion: false })
|
||||
clipContainer.add_child(panelBox)
|
||||
Main.layoutManager.trackChrome(panelBox, {
|
||||
trackFullscreen: true,
|
||||
affectsStruts: true,
|
||||
})
|
||||
|
||||
panel = new Panel.Panel(
|
||||
this,
|
||||
@@ -685,14 +681,19 @@ export const PanelManager = class {
|
||||
panelBox.add_child(panel)
|
||||
panel.enable()
|
||||
|
||||
panelBox._dtpIndex = monitor.index
|
||||
panelBox.set_position(0, 0)
|
||||
panelBox.set_width(-1)
|
||||
|
||||
Main.layoutManager.trackChrome(panel, {
|
||||
affectsInputRegion: true,
|
||||
affectsStruts: false,
|
||||
})
|
||||
|
||||
panelBox._dtpIndex = monitor.index
|
||||
panelBox.set_position(0, 0)
|
||||
panelBox.set_width(-1)
|
||||
Main.layoutManager.trackChrome(panelBox, {
|
||||
trackFullscreen: true,
|
||||
affectsStruts: true,
|
||||
})
|
||||
|
||||
this._findPanelMenuButtons(panelBox).forEach((pmb) =>
|
||||
this._adjustPanelMenuButton(pmb, monitor, panel.geom.position),
|
||||
|
||||
Reference in New Issue
Block a user