Icon locations on multiple monitors
Hi!
I have the issue with two monitor setup.
Problem description
I have two monitor setup.
First monitor is at the left, second is at the right.
I have icon named testicon.
I check the icon position with command: cat ~/.config/xfce4/desktop/icons.screen0.yaml | grep -i testicon -A 2
When I place the icon at first monitor to the top-right corner, I got this position:
"/home/sshopin/Desktop/files":
row: 0
col: 12
When this icon is moved to the second monitor to the top-right corner, I got this
$ cat ~/.config/xfce4/desktop/icons.screen0.yaml | grep -i testicon -A 2 "/home/sshopin/Desktop/testicon": row: 0 col: 12 --
"/home/sshopin/Desktop/testicon": row: 0 col: 19
Thus, I have two positions (old and new) of the same icon at the same time.
When I move icon to the first monitor, I got correct position:
$ cat ~/.config/xfce4/desktop/icons.screen0.yaml | grep -i testicon -A 2 "/home/sshopin/Desktop/testicon": row: 0 col: 17
When I again mode icon to the second monitor, I got this again:
$ cat ~/.config/xfce4/desktop/icons.screen0.yaml | grep -i testicon -A 2 "/home/sshopin/Desktop/testicon": row: 0 col: 12
-- "/home/sshopin/Desktop/testicon":
row: 0
col: 17
Please note, that at the same time, the second position (0,12) is also incorrect: it has a value of col=12, i.e., it is numbered starting from the upper left corner of the right monitor, rather than starting from the upper left corner of the entire virtual monitor. I suggest it must be something like (0,12+19), since the first monitor has 19 columns.
As a result, after rebooting, the icon will appear on the first monitor, not the second as it was placed before.
I suggest that a number of known issues with icons may be related to this behavior (i.e. 433, 434).
Configuration
Debian 13
xfce4-session 4.20.2 (Xfce 4.20)
$ xrandr
Screen 0: minimum 320 x 200, current 3200 x 1080, maximum 16384 x 16384
DP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
1920x1080 60.00*+
1680x1050 59.88
1400x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x800 59.91
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
832x624 74.55
800x600 75.00 60.32 56.25
640x480 75.00 59.94
720x400 70.08
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1280x1024+1920+0 (normal left inverted right x axis y axis) 376mm x 301mm
1280x1024 60.02*+ 75.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
DP-4 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
This is xfdesktop version 4.20.1, running on Xfce 4.20.
Built with GTK+ 3.24.48, linked with GTK+ 3.24.49.
Build options:
Desktop Menu: enabled
Desktop Icons: enabled
Desktop File Icons: enabled
xfsettingsd 4.20.1 (Xfce 4.20)
$ xfconf-query -c displays -lv
/ActiveProfile Default
/AutoEnableProfiles 3
/Default/Virtual1 Virtual1
/Default/Virtual1/Active true
/Default/Virtual1/EDID 3fb560063c8239f0290e36e74696f54a37609565
/Default/Virtual1/Position/X 0
/Default/Virtual1/Position/Y 0
/Default/Virtual1/Primary false
/Default/Virtual1/Reflection 0
/Default/Virtual1/RefreshRate 59.997937
/Default/Virtual1/Resolution 1920x974
/Default/Virtual1/Rotation 0
/Default/Virtual1/Scale 1.000000
/Notify 1
$ xfconf-query -c xfce4-desktop -lv
/backdrop/screen0/monitor0/brightness 0
/backdrop/screen0/monitor0/color1 [7936,16128,28416,65535]
/backdrop/screen0/monitor0/color2 [26880,34048,46848,65535]
/backdrop/screen0/monitor0/color-style 1
/backdrop/screen0/monitor0/image-path /usr/share/images/desktop-base/default
/backdrop/screen0/monitor0/image-show true
/backdrop/screen0/monitor0/last-image /usr/share/images/desktop-base/default
/backdrop/screen0/monitor0/last-single-image /usr/share/images/desktop-base/default
/backdrop/screen0/monitor1/brightness 0
/backdrop/screen0/monitor1/color1 [7936,16128,28416,65535]
/backdrop/screen0/monitor1/color2 [26880,34048,46848,65535]
/backdrop/screen0/monitor1/color-style 1
/backdrop/screen0/monitor1/image-path /usr/share/images/desktop-base/default
/backdrop/screen0/monitor1/image-show true
/backdrop/screen0/monitor1/last-image /usr/share/images/desktop-base/default
/backdrop/screen0/monitor1/last-single-image /usr/share/images/desktop-base/default
/backdrop/screen0/monitorDP-1/workspace0/last-image /home/sshopin/Wallpapers/DSC01240_c1.jpg
/backdrop/screen0/monitorHDMI-2/workspace0/last-image /home/sshopin/Wallpapers/DSC01271_c1.jpg
/backdrop/screen0/monitorVirtual1/workspace0/last-image /home/sshopin/Pictures/DSC01266_c1.jpg
/desktop-icons/file-icons/show-device-fixed false
/desktop-icons/file-icons/show-device-removable true
/desktop-icons/file-icons/show-network-removable false
/desktop-icons/file-icons/show-unknown-removable true
/desktop-icons/icon-size 48
/desktop-icons/label-text-color [0.000000,0.000000,0.000000,1.000000]
/desktop-icons/style 2
/desktop-icons/tooltip-size 36.000000
/desktop-icons/use-custom-label-text-color true
/last-settings-migration-version 1
/last/window-height 559
/last/window-width 695
$ ps -ef | grep -E 'xfdesktop|xfsettingsd'
sshopin 301799 301631 0 14:11 ? 00:00:01 xfsettingsd
sshopin 528022 311765 0 14:59 pts/2 00:00:11 xfdesktop
sshopin 918357 311765 0 16:23 pts/2 00:00:00 grep -E xfdesktop|xfsettingsd