mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Adjust Desktop Icons NG
This commit is contained in:
2
panel.js
2
panel.js
@@ -1234,7 +1234,7 @@ var Panel = GObject.registerClass({
|
||||
let time = Me.settings.get_int('show-showdesktop-time') * .001;
|
||||
|
||||
workspace.list_windows().forEach(w => {
|
||||
if (!w.minimized) {
|
||||
if (!w.minimized && !w.skip_taskbar) {
|
||||
let tweenOpts = {
|
||||
opacity: hide ? 0 : 255,
|
||||
time: time,
|
||||
|
||||
@@ -65,9 +65,6 @@ var PanelManager = class {
|
||||
}
|
||||
|
||||
enable(reset) {
|
||||
if (!reset)
|
||||
this._desktopIconsUsableArea = new DesktopIconsIntegration.DesktopIconsUsableAreaClass();
|
||||
|
||||
let dtpPrimaryIndex = Me.settings.get_int('primary-monitor');
|
||||
|
||||
this.dtpPrimaryMonitor = Main.layoutManager.monitors[dtpPrimaryIndex] || Main.layoutManager.primaryMonitor;
|
||||
@@ -120,6 +117,8 @@ var PanelManager = class {
|
||||
|
||||
if (reset) return;
|
||||
|
||||
this._desktopIconsUsableArea = new DesktopIconsIntegration.DesktopIconsUsableAreaClass();
|
||||
|
||||
this._oldUpdatePanelBarrier = Main.layoutManager._updatePanelBarrier;
|
||||
Main.layoutManager._updatePanelBarrier = (panel) => {
|
||||
let panelUpdates = panel ? [panel] : this.allPanels;
|
||||
|
||||
4
utils.js
4
utils.js
@@ -394,17 +394,17 @@ var animateWindowOpacity = function(window, tweenOpts) {
|
||||
//when the animation is complete
|
||||
let visible = tweenOpts.opacity > 0;
|
||||
let windowActor = window;
|
||||
let initialOpacity = window.opacity;
|
||||
|
||||
window = windowActor.get_first_child() || windowActor;
|
||||
|
||||
if (!windowActor.visible && visible) {
|
||||
window.opacity = 0;
|
||||
windowActor.visible = visible;
|
||||
tweenOpts.opacity = Math.min(initialOpacity, tweenOpts.opacity);
|
||||
}
|
||||
|
||||
if (!visible) {
|
||||
let initialOpacity = window.opacity;
|
||||
|
||||
tweenOpts.onComplete = () => {
|
||||
windowActor.visible = visible;
|
||||
window.opacity = initialOpacity;
|
||||
|
||||
Reference in New Issue
Block a user