Bug 155106 - Consider supporting _NET_WM_MOUSE_ACTION
Consider supporting _NET_WM_MOUSE_ACTION
Status: NEW
Product: nautilus
Classification: Core
Component: general
2.13.x
Other All
: Normal normal
: future
Assigned To: Nautilus Maintainers
Nautilus Maintainers
:
Depends on: 154260
Blocks:
  Show dependency tree
 
Reported: 2004-10-11 16:49 UTC by Elijah Newren
Modified: 2015-01-17 02:10 UTC (History)
2 users (show)

See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Allow window to be raised on ButtonRelease, and only if drag didn't occur (890 bytes, patch)
2004-10-11 16:50 UTC, Elijah Newren
none Details | Diff | Review
Simple fix -- pass toplevel GdkWindows like I'm supposed to (942 bytes, patch)
2004-10-12 21:11 UTC, Elijah Newren
none Details | Diff | Review
Some fixes for the newer gtk+ patch, also support clicks that aren't on icons (2.53 KB, patch)
2004-10-13 17:50 UTC, Elijah Newren
none Details | Diff | Review
Update to match newer gtk+ patch I just added to bug 154260 (848 bytes, patch)
2006-05-08 23:51 UTC, Elijah Newren
needs-work Details | Diff | Review

Description Elijah Newren 2004-10-11 16:49:02 UTC
_NET_WM_MOUSE_ACTION is a new EWMH proposal to allow window managers to be
smarter about when to raise on windows.  For example, if a click begins a
drag-and-drop operation, it would be nice for the WM to only raise on
ButtonRelease and only if the GTK drag threshold wasn't met.  This isn't part of
the EWMH yet, but I'm filing the patch so people can try it out and we can try
to come to a consensus on what should be accepted into the EWMH.

See http://mail.gnome.org/archives/wm-spec-list/2004-October/msg00008.html and
bug 154260 and bug 152952 for more detailed discussions of this feature.
Comment 1 Elijah Newren 2004-10-11 16:50:24 UTC
Created attachment 32479 [details] [review]
Allow window to be raised on ButtonRelease, and only if drag didn't occur

This depends on the gtk+ patch in bug 154260 first being applied; I'll mark
that dependency in just a minute.
Comment 2 Elijah Newren 2004-10-12 21:11:52 UTC
Created attachment 32532 [details] [review]
Simple fix -- pass toplevel GdkWindows like I'm supposed to
Comment 3 Elijah Newren 2004-10-13 17:50:56 UTC
Created attachment 32568 [details] [review]
Some fixes for the newer gtk+ patch, also support clicks that aren't on icons
Comment 4 Christian Neumair 2005-10-04 11:01:31 UTC
Updating bug information, since the GTK+ API is still not in 2.8.
Comment 5 Christian Neumair 2006-02-25 20:34:15 UTC
Still not in GTK+, updating again.

Elijah: Any news on this one? :)
Comment 6 Elijah Newren 2006-02-25 20:51:42 UTC
Feel free to resolve as incomplete if you like; we can reopen after someone has the time to implement the new GTK+ stuff to the gtk+ hackers' liking.
Comment 7 Elijah Newren 2006-05-08 23:51:44 UTC
Created attachment 65056 [details] [review]
Update to match newer gtk+ patch I just added to bug 154260

This patch along with the gtk+ (bug 154260 comment 28) and metacity ones (bug 152952, I'll attach the new version soon) is functional without regressions, unlike the previous patches.

However, this patch only supports dnd in icon view.  There are 3 other gtk_drag_begin() calls in nautilus, so there are probably 3 other locations where don't-raise-on-button-press-of-dnd isn't properly supported with this patch.  Fixing those will likely just mean 3 more functions calls in the appropriate spot; it's probably a trivial fix, but getting the gtk+ patch cleaned up is first priority.
Comment 8 André Klapper 2015-01-17 02:10:59 UTC
Comment on attachment 65056 [details] [review]
Update to match newer gtk+ patch I just added to bug 154260

libnautilus-private/nautilus-icon-container.c does not exist anymore in git master. Hence setting 'needs-rework' as patch does not apply cleanly.

Note You need to log in before you can comment on or make changes to this bug.