After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 152993 - New documents/folders are not created under the mouse position
New documents/folders are not created under the mouse position
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Desktop
2.13.x
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 145000 153568 302919 330376 (view as bug list)
Depends on:
Blocks: 45368
 
 
Reported: 2004-09-18 11:09 UTC by Manuel Teira
Modified: 2008-11-26 22:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Manuel Teira 2004-09-18 11:09:31 UTC
When you want to create a new document, right clicking on a free desktop area,
the document icon is not positioned under the cursor, it's created in a free
desktop region, that could be under other windows.
I think that the right behaviour would be that the new document icon should be
created under the position of the right click. It's annoying have to look for
the new document under all the windows to manipulate it.
Comment 1 Martin Wehner 2005-03-06 15:18:23 UTC
*** Bug 153568 has been marked as a duplicate of this bug. ***
Comment 2 Martin Wehner 2005-03-06 15:19:54 UTC
Also applies to new folders, updating summary.
Comment 3 Crispin Flowerday (not receiving bugmail) 2005-03-14 13:34:26 UTC
This also applies to files that were dragged to the desktop / folders. FWIW this
is _really_ annoying for me, as I always covering the left monitor, which is
where the files appear.
Comment 4 Olav Vitters 2005-05-04 23:47:49 UTC
*** Bug 302919 has been marked as a duplicate of this bug. ***
Comment 5 Sebastien Bacher 2005-05-14 21:52:15 UTC
Crispin, do you still have this issue? That works fine for the dnd to the
desktop here
Comment 6 Crispin Flowerday (not receiving bugmail) 2005-05-18 15:28:52 UTC
This does seem to work fine for me now.
Comment 7 Christian Neumair 2005-07-21 10:07:40 UTC
It definitly doesn't work fine. I've got a patch which solves this for new
documents from template, but the new folder thingie seems to be a bit more
tricky, since the current IconPositionIterator architecture only provides source
URI iterators. I've hacked it to accept target URI iterators as well but
duplicate handling is broken them. Let's see what I can do... .
Comment 8 Crispin Flowerday (not receiving bugmail) 2005-07-21 10:15:52 UTC
Another example of it failing to put the new file under the mouse cursor is when
dragging the image off the gnome-panel-screenshot program onto the desktop. No
matter where you drag the image, it always appears in the top left of the screen.
Comment 9 Lionel Dricot 2005-08-11 08:32:19 UTC
Is this bug related to #145000 and #45368 ?
Comment 10 Christian Neumair 2005-08-12 07:05:59 UTC
Lionel: Both are sort-of related. While bug 145000 describes the same issue as
here - but only complains about folder creation, I think we can close it. Bug
45368 refers to the internal manual layout icon container code borkage, though.
The issue won't be there anymore after we fix this one.
Comment 11 Christian Neumair 2005-08-12 07:08:18 UTC
Oh, and note that I already had a patch for this in my local repository, but the
patch didn't deal correctly with folders. The problem is that the icon
positioning code works with source URI iterators, which makes it hard to deal
with folders that have a source URI set to NULL. I think we should simply remove
the URI code from the iterator. The index should just match the position of the
positioned icon in the icon list.
Comment 12 Christian Neumair 2005-08-12 07:10:13 UTC
*** Bug 145000 has been marked as a duplicate of this bug. ***
Comment 13 Jose M. daLuz 2006-01-25 23:49:56 UTC
Is fixing this something that would still be possible within the 2.14 release schedule? I run into this all the time with new documents and would much appreciate it if there's any possibility of fixing it.
Comment 14 Christian Neumair 2006-01-29 21:29:10 UTC
An anylsis showed that we're currently (Nautilus 2.13) having two problems:
a) icon positions not correct - resolvable by converting the GdkPoint coordinates on screen into eel canvas units
b) icon positions not set for newly created files. Problem: We copy over metadata from the old "/tmp" location where we create a dummy file, which overwrites the previously set icon position. I've tried to resolve this by hacking the metadata system, since I supposed the problem is due to the async nature of the lazy metafile reading. However, it turned out that this is not resolvable without a special file transfer hint specifying to NOT copy over metadata.
Comment 15 Sebastien Bacher 2006-02-09 10:02:06 UTC
*** Bug 330376 has been marked as a duplicate of this bug. ***
Comment 16 John Nilsson 2006-02-23 17:06:16 UTC
It's not only documents or folders that should be created under the cursor. When selectgin "Open Terminal" from the context menu it can be thought of as "creating" a new terminal. Thus even this form of "creation" should behave as expected.
Comment 17 Baptiste Mille-Mathias 2006-02-23 17:21:06 UTC
(In reply to comment #16)
> When selecting "Open Terminal" from the context menu it can be thought of as
> "creating" a new terminal. 

I don't they should act as the same manner.
A terminal is an application and so, should behave following WM rules (creating windows from left to right), whereas the files are object on a desktop.
Comment 18 John Nilsson 2006-02-23 17:52:02 UTC
From a certian point of view that is a correct techincal distinction. Dropping the knowledge of this distinction puts the matter in a different light though.

The actions are similar:
1. You right click and select a menu entry.
2. A new object appears on the screen.
Comment 19 Andrew D. Stadler 2006-06-09 17:54:21 UTC
I note that this bug is listed as status "NEW" and yet, as of my nautilus-2.14 system, it seems to be fixed! (Thanks!)  

Is anyone from gnome-landing going thru these bugs and closing them?
Comment 20 Jose M. daLuz 2006-06-09 18:56:13 UTC
(In reply to comment #19)
> I note that this bug is listed as status "NEW" and yet, as of my nautilus-2.14
> system, it seems to be fixed!
> 
New folders are created under the mouse cursor, but new documents are not (as of 2.15.2).
Comment 21 Jose M. daLuz 2006-07-25 15:59:46 UTC
Is there any chance a fix for this will make it into 2.16? This is one of those niggling little usability issues that long-time Gnome users work around (though it's an annoyance no matter how long you've used Gnome), but that throws new users off. It's the creation under other windows aspect that's the killer -- if you don't already know where to look you could think this feature is completely broken, then an hour later after closing Firefox or OpenOffice wonder why this "new file" appeared out of nowhere.
Comment 22 Jose M. daLuz 2007-02-14 02:50:44 UTC
I'm not sure when this was fixed, but as of nautilus 2.17.90 it's fixed for documents as well as folders.
Comment 23 Federico Mena Quintero 2008-11-26 22:24:52 UTC
Closing; this doesn't happen anymore.