fixes bug 70519 "Select All (+ Copy) does not clobber the X primary selection"

patch=jwbaker@acm.org r=akkana sr=kin


git-svn-id: svn://10.0.0.236/trunk@106818 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2001-10-31 06:14:11 +00:00
parent 0c69b5d30d
commit c7306462ea
4 changed files with 10 additions and 18 deletions

View File

@@ -131,8 +131,10 @@ nsAutoCopyService::NotifySelectionChanged(nsIDOMDocument *aDoc, nsISelection *aS
{
nsresult rv;
if (!(aReason & nsISelectionListener::MOUSEUP_REASON))
return NS_OK; //dont care if we are still dragging. or if its not from a mouseup
if (!(aReason & nsISelectionListener::MOUSEUP_REASON ||
aReason & nsISelectionListener::SELECTALL_REASON ||
aReason & nsISelectionListener::KEYPRESS_REASON))
return NS_OK; //dont care if we are still dragging
PRBool collapsed;
if (!aDoc || !aSel || NS_FAILED(aSel->GetIsCollapsed(&collapsed)) || collapsed) {
#ifdef DEBUG_CLIPBOARD