Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-10-16 08:20:05

m.alessandrini
Member
Registered: 2017-10-16
Posts: 3

Create icon in a given position

Hi, when creating an icon by right-clicking on the desktop, e.g. creating a directory or pasting a file, the icon is not created in the position you clicked, but in the left, in the first free space. So you then have to find it in the bulk of other icons and drag it where you want, which is annoying.
One naturally expects an icon would be created where you mean when you click, at least this is the "standard" behaviour one has grown up with.
Bye and thanks
Michele

Offline

#2 2017-10-16 09:44:11

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

Re: Create icon in a given position

Hello and welcome.

Xfdesktop uses a grid system for icon placement (not free placement) so when a new icon is created, the next position in the grid is used. There are a number of bug and enhancment requests in the bug tracker if you want to add your voice to one of them requesting a change to a free placement model.


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 2017-10-16 10:07:00

m.alessandrini
Member
Registered: 2017-10-16
Posts: 3

Re: Create icon in a given position

Thanks for your reply.
The fact is that you can drag icons where you want, even with constraints on the grid, so it's not really something Xfce is lacking.
I'll look at the bug tracker.
Bye
Michele

Offline

#4 2017-10-16 16:27:26

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

Re: Create icon in a given position

m.alessandrini wrote:

The fact is that you can drag icons where you want, even with constraints on the grid, so it's not really something Xfce is lacking.

True. However, currently the code just grabs the next available spot in the grid for new icon creation events. An enhancement of some sort will be required.


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 2017-10-17 06:45:12

m.alessandrini
Member
Registered: 2017-10-16
Posts: 3

Re: Create icon in a given position

Maybe it could be enough to add a call to the function that handles the drag&drop, like if the icon was moved in that point. I mean:
- create the icon in the default place, as usual
- move the icon to the clicked point. I guess there is a function for that, used when you physically release an icon with the mouse, that takes care of placing the icon properly in the grid, or falls back to leave the icon in the original place if you release it to a non-free space.
(BTW: do I have to do another registration for the bugs section?)

Offline

#6 2017-10-17 10:14:40

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

Re: Create icon in a given position

Possibly. If you could submit a patch that would surely be helpful. Might move it forward quicker (keep in mind that the current work efforts are geared towards the GTK3 migration).

Unfortunately, you do need a new account for the bug tracker. There have been some recent discussions of moving the git/bug infrastructure to gitea. If so, it would consolidate the two functions.


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.009 seconds, 8 queries executed - Memory usage: 532.67 KiB (Peak: 533.52 KiB) ]