Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-09 13:20:32

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Possible to make desktop dragging and dropping "less forgiving"?

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

#2 2023-08-09 15:38:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

#3 2023-08-09 16:25:24

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

Doesn't seem to work no matter what command I try. For example: `xfce4-panel -r && xfwm4 --replace`.

Offline

#4 2023-08-09 16:53:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

#5 2023-08-09 21:03:44

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

ToZ wrote:
xfdesktop -Q && xfdesktop &

Also doesn't work.

ToZ wrote:

...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

#6 2023-08-10 10:55:20

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

Sadly, it's still the same after starting the machine today...

Offline

#7 2023-08-10 12:31:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

#8 2023-08-10 16:01:59

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

#9 2023-08-10 16:34:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

#10 2023-08-11 09:34:00

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

ToZ wrote:

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

#11 2023-08-11 16:22:57

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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.

d2.png

d1.png

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

#12 2023-08-11 17:32:36

forcedtopicksomething
Member
Registered: 2023-07-26
Posts: 56

Re: Possible to make desktop dragging and dropping "less forgiving"?

ToZ wrote:
XfdesktopIconView.view {
  -XfdesktopIconView-cell-padding: 0;
}

Default and your latest code result in the same stuff: https://streamable.com/e/0bpn14?quality=highest

Offline

#13 2023-08-11 18:52:22

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Possible to make desktop dragging and dropping "less forgiving"?

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 583.37 KiB (Peak: 600.21 KiB) ]