home-sweet-gnome / dash-to-panel

An icon taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel so that the application launchers and system tray are combined into a single panel, similar to that found in KDE Plasma and Windows 7+. A separate dock is no longer needed for easy access to running and favorited applications.
GNU General Public License v2.0
3.81k stars 279 forks source link

Panel layout resets after external monitor connection #1782

Open xalt7x opened 2 years ago

xalt7x commented 2 years ago

Describe the bug Dash to Panel has an option "Apply changes to all monitors" (panel-element-positions-monitors-sync). Unfortunately after yours first external monitor connection panel layout (left/right/top panel location, elements position & stacking) get reset to default values. That happens even with disabled option "Display panel on all monitors" (multi-monitors). After you tweak panel layout once again it would stick (at least for 2 displays).

How to reproduce

  1. Disconnect all external displays ; close extension settings window, [optionally] reload GNOME Shell
  2. Reset extension settings gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/schemas/ reset-recursively org.gnome.shell.extensions.dash-to-panel
  3. Disable "Display panels on all monitors" (via dconf or with a CLI command) gsettings --schemadir ~/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/schemas/ set org.gnome.shell.extensions.dash-to-panel multi-monitors false
  4. Change some layout settings on a "Position" tab (e.g. place panel on the left side of the screen, select "Monitor Center" element position for "Taskbar")
  5. Connect external monitor

Expected result Dash to Panel preserves previously tweaked panel layout

Observed result Panel layout resets to default values (panel at the bottom of the screen, "Taskbar" element stacked to left etc)

Linux distribution and version Ubuntu 22.04

GNOME Shell version 42.4

Dash-to-Panel version 52

Where was Dash-to-Panel installed from? Extension Manager

charlesg99 commented 1 year ago

I can't reproduce on Ubuntu 22.04 following your steps, for me the panel keeps its settings.

Gnorv commented 1 year ago

Prelude

I want to add that the "Display main panel on" option is reset as well when turning off and back on a DisplayPort monitor. I have the panel only on a smaller monitor (2), connected via HDMI, and no panel on a bigger monitor (1), connected via DisplayPort.

Unexpected Behaviour

Dash to panel is set to "Display main panel on" "Secondary monitor", showing only on (2). When I turn off (1), then turn it back on, "Display main panel on" is reset to "Primary monitor", showing on (1). I would expect it remembers to be shown only on (2).

Supposed Problem

I assume this behavior is caused because (2) becomes the primary monitor when (1) is disconnected, so "Display main panel on" is automatically set to "Primary monitor". When reconnecting (1) it is again the primary monitor, the "Display main panel on" is still on "Primary monitor", so shows on (1).

(1) My bigger main monitor (2) My smaller secondary monitor

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

pavelToman commented 8 months ago

I have also problem with panel positions and thickness after switching office/home. At the office I have laptop open + 2 external monitors = laptop monitor, recognized as no.1, is primary one and the dock has position: right. First external, no.2, position: right. Second external, no.3, position bottom. At home I have laptop monitor (no.1, primary) + one external (no.2) and there is a problem with primary laptop monitor - the dock is bottom, not on the right as it should be. External monitor is ok, has a dock on the right. It seems after I switch to home the primary dock gets a position either a thickness of the dock from 3. monitor at a office. Ubuntu 23.10 Dock version 60

[/]
animate-app-switch=true
animate-appicon-hover=true
animate-appicon-hover-animation-duration={'SIMPLE': uint32 143, 'RIPPLE': 130, 'PLANK': 100}
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1}
animate-appicon-hover-animation-rotation={'SIMPLE': 6, 'RIPPLE': 10, 'PLANK': 0}
animate-appicon-hover-animation-travel={'SIMPLE': 0.01, 'RIPPLE': 0.40000000000000002, 'PLANK': 0.0}
animate-appicon-hover-animation-zoom={'SIMPLE': 1.25, 'RIPPLE': 1.25, 'PLANK': 2.0}
animate-window-launch=true
appicon-margin=0
appicon-padding=8
available-monitors=[1, 0]
click-action='CYCLE-MIN'
desktop-line-custom-color='rgb(198,70,0)'
desktop-line-use-custom-color=true
dot-color-1='#ffa348'
dot-color-2='#ffa348'
dot-color-3='#ffa348'
dot-color-4='#ffa348'
dot-color-dominant=false
dot-color-override=true
dot-color-unfocused-1='#f66151'
dot-color-unfocused-2='#f66151'
dot-color-unfocused-3='#f66151'
dot-color-unfocused-4='#f66151'
dot-color-unfocused-different=true
dot-position='LEFT'
dot-size=5
dot-style-focused='SEGMENTED'
dot-style-unfocused='DOTS'
focus-highlight=true
focus-highlight-color='#ed333b'
focus-highlight-dominant=false
focus-highlight-opacity=40
group-apps=true
group-apps-label-font-color='#dddddd'
group-apps-label-font-color-minimized='#dddddd'
group-apps-label-font-size=14
group-apps-label-font-weight='inherit'
group-apps-label-max-width=160
group-apps-underline-unfocused=true
group-apps-use-fixed-width=true
group-apps-use-launchers=false
hide-overview-on-startup=false
hot-keys=false
hotkeys-overlay-combo='TEMPORARILY'
intellihide=false
intellihide-close-delay=1000
isolate-monitors=false
isolate-workspaces=true
leftbox-padding=-1
multi-monitors=true
overview-click-to-exit=false
panel-anchors='{"0":"MIDDLE","1":"MIDDLE","2":"MIDDLE"}'
panel-element-positions='{"0":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":false,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}],"1":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":false,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":false,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":false,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}],"2":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":false,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":false,"position":"centered"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
panel-element-positions-monitors-sync=false
panel-lengths='{"0":100,"1":100,"2":100}'
panel-positions='{"0":"RIGHT","1":"RIGHT","2":"RIGHT"}'
panel-sizes='{"0":64,"1":59,"2":58}'
preview-custom-opacity=100
primary-monitor=1
progress-show-count=true
scroll-panel-action='CYCLE_WINDOWS'
secondarymenu-contains-appmenu=true
secondarymenu-contains-showdetails=false
show-appmenu=false
show-apps-icon-file=''
show-favorites=true
show-favorites-all-monitors=true
show-running-apps=true
show-showdesktop-hover=false
show-tooltip=true
show-window-previews-timeout=150
showdesktop-button-width=10
status-icon-padding=-1
stockgs-force-hotcorner=false
stockgs-keep-dash=false
stockgs-keep-top-panel=false
stockgs-panelbtn-click-only=false
trans-gradient-bottom-opacity=0.25
trans-gradient-top-color='#e01b24'
trans-gradient-top-opacity=0.45000000000000001
trans-use-custom-bg=false
trans-use-custom-gradient=true
trans-use-custom-opacity=false
tray-padding=-1
tray-size=0
window-preview-padding=1
window-preview-show-title=true
window-preview-size=400
window-preview-title-font-size=12
window-preview-title-position='TOP'