You are not logged in.
Several times a day, I accidentally move files/dirs when I drag and drop them on the desktop, intending to place them on the desktop but ending up moving them into existing nearby folders because the "drop" part is so "forgiving".
Basically, my brain perpetually thinks that for it to count, the mouse cursor has to be touching the folder icon on the desktop, but it actually allows a huge "invisible hitbox" rectangle around the visible icon.
I've looked for an option to change this, but I've not found anything which seems to make a difference. Is there some neat checkbox somewhere in the settings to turn on "strict dropping" mode, like in Windows?
Last edited by forcedtopicksomething (2023-08-09 13:21:18)
Offline
There is an invisible hitbox around the icon that can be made smaller. Add the following to ~/.config/gtk-3.0/gtk.css:
XfdesktopIconView.view {
-XfdesktopIconView-cell-padding: 0;
-XfdesktopIconView-cell-spacing: 0;
}
...and restart the xfdesktop process. Feel free to adjust those values to suit.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Doesn't seem to work no matter what command I try. For example: `xfce4-panel -r && xfwm4 --replace`.
Offline
Try:
xfdesktop -Q && xfdesktop &
...or log out and back in again.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
xfdesktop -Q && xfdesktop &
Also doesn't work.
...or log out and back in again.
I'd lose my state, but I guess it will work when it boots tomorrow.
Last edited by forcedtopicksomething (2023-08-09 21:04:05)
Offline
Sadly, it's still the same after starting the machine today...
Offline
Can you post back the outputs of:
cat ~/.config/gtk-3.0/gtk.css
ps -ef | grep -i desktop
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
cat ~/.config/gtk-3.0/gtk.css
.tasklist { -XfceTasklist-menu-max-width-chars: 128; }
XfdesktopIconView.view {
-XfdesktopIconView-cell-padding: 0;
-XfdesktopIconView-cell-spacing: 0;
}
ps -ef | grep -i desktop
a 1517 1367 0 16:32 ? 00:00:21 xfdesktop
a 4241 1346 0 16:33 ? 00:00:00 /usr/libexec/xdg-desktop-portal
a 4270 1346 0 16:33 ? 00:00:00 /usr/libexec/xdg-desktop-portal-gtk
a 79476 79411 0 18:00 pts/1 00:00:00 grep -i desktop
Offline
Hmm. Try changing the "0" value to a higher one, say "50" and restart xfdesktop to see if you see a difference. Perhaps your theme already sets it to 0.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hmm. Try changing the "0" value to a higher one, say "50"
Well, it changed things so that there is a massive padding *between* the icons, as well as between the icons and their text labels, but did nothing in terms of changing the "hitbox" when dragging and dropping.
Offline
It's hard to tell with screenshots, but here are a couple. On my system, the icon "highlights" when I get within the drop hitbox. I've grabbed the screen where this happens. In the first image, cell-padding is set to "0". In the second, it is set to "50". There us an obvious shrinking of the hitbox for me.
Also, I'm only using the cell-padding property as the other one just adds more space.
XfdesktopIconView.view {
-XfdesktopIconView-cell-padding: 0;
}
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
XfdesktopIconView.view { -XfdesktopIconView-cell-padding: 0; }
Default and your latest code result in the same stuff: https://streamable.com/e/0bpn14?quality=highest
Offline
Maybe its something with the Chicago95 theme then. Not sure what else to add - this is the only setting Xfce has impacts the hitbox.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 583.37 KiB (Peak: 600.21 KiB) ]