Closed Bug 179078 Opened 22 years ago Closed 21 years ago

[gtk2] dnd to personal toolbar doesn't cancel properly

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: blizzard, Assigned: yinbolian)

References

Details

Attachments

(1 file, 2 obsolete files)

From Matt Wilson: Drag a link from the content area to a personal toolbar bookmark folder. Keep holding the mouse button. Wait for the toolbar folder to open. Then press Escape to cancel the DnD. The folder closes, but the DnD icon doesn't go away until you click on it.
Blocks: gtk2
Blocks: 179657
have similiar symptom with Bug 96504.
No longer blocks: 179657
Blocks: 179657
taking
Assignee: blizzard → bolian.yin
Attached patch patch (obsolete) — Splinter Review
The same to prevent mozilla take grab from gtk as I used in bug #148996
Attachment #107991 - Flags: review?(blizzard)
This patch prevent popmenu grab from gtk dnd, but can not do properly on the popupped menu due to a gtk2 bug. see http://bugzilla.gnome.org/show_bug.cgi?id=101512
included in gtk+-2.2.0 was the fix of http://bugzilla.gnome.org/show_bug.cgi?id=101512
What is the status of this patch?
waiting for r=blizzard, but it seems he did not get time.
Status: NEW → ASSIGNED
Attachment #107991 - Flags: review?(blizzard) → review+
Attachment #107991 - Flags: superreview?(Henry.Jia)
Attachment #107991 - Flags: superreview?(Henry.Jia) → superreview+
Attachment #107991 - Attachment is obsolete: true
Comment on attachment 107991 [details] [diff] [review] patch This is not for mozilla gtk2 build (NOT default build).
Attachment #107991 - Flags: approval1.6b?
Comment on attachment 107991 [details] [diff] [review] patch >+PRBool >+nsWindow::DragInProgress(void) >+{ >+ // mLastDragMotionWindow means the drag arrow is over mozilla >+ // sIsDraggingOutOf means the drag arrow is out of mozilla >+ // both cases mean the dragging is happenning. >+ if (mLastDragMotionWindow || sIsDraggingOutOf) >+ return PR_TRUE; >+ else >+ return PR_FALSE; My favorite if-else: just 'return mLastDragMotionWindow || sIsDraggingOutOf;' and save the source codeprint, if not the compiler cycles optimizing away the branches. /be
Attachment #136336 - Attachment is obsolete: true
Attachment #107991 - Flags: approval1.6b?
Attachment #136646 - Flags: approval1.6b?
Comment on attachment 136646 [details] [diff] [review] new patch (with change from Brendan's comment) a=asa (on behalf of drivers) for checkin to 1.6beta
Attachment #136646 - Flags: approval1.6b? → approval1.6b+
checked in Trunk.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: