Summary: | Unable to paste URLs into blank konqueror window with middle-click | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Dave Corrie <kde> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mschiff |
Priority: | NOR | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file. |
Description
Dave Corrie
2003-07-13 14:31:47 UTC
Created attachment 1995 [details]
A copy of my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file.
When I use my work-around of manually saving the "about:blank" location with my
webbrowsing profile, my $KDEHOME/share/apps/konqueror/profiles/webbrowsing file
differs from attachment 1995 [details] as follows:
--- webbrowsing 2003-07-13 13:09:25.000000000 +0100
+++ webbrowsing_about_blank 2003-07-13 13:07:54.000000000 +0100
@@ -51,11 +51,13 @@
View1_ServiceName=konq_sidebartng
View1_ServiceType=Browser/View
View1_ToggleView=true
+View1_URL=
View2_LinkedView=false
View2_LockedLocation=false
View2_PassiveMode=false
View2_ServiceName=khtml
View2_ServiceType=text/html
View2_ToggleView=false
+View2_URL=about:blank
View2_docContainer=true
Width=1592
*** Bug 81426 has been marked as a duplicate of this bug. *** CVS commit by faure: Send mouse release event to KHTMLPart even when no url was opened (e.g. konqueror with intro disabled). This allows to handle MMB-pasting. BUG: 61179 M +24 -22 khtmlview.cpp 1.696 --- kdelibs/khtml/khtmlview.cpp #1.695:1.696 @@ -1212,6 +1212,5 @@ void KHTMLView::viewportMouseMoveEvent( void KHTMLView::viewportMouseReleaseEvent( QMouseEvent * _mouse ) { - if ( !m_part->xmlDocImpl() ) return; - + bool swallowEvent = false; int xm, ym; viewportToContents(_mouse->x(), _mouse->y(), xm, ym); @@ -1216,9 +1215,11 @@ void KHTMLView::viewportMouseReleaseEven int xm, ym; viewportToContents(_mouse->x(), _mouse->y(), xm, ym); - DOM::NodeImpl::MouseEvent mev( _mouse->stateAfter(), DOM::NodeImpl::MouseRelease ); + + if ( m_part->xmlDocImpl() ) + { m_part->xmlDocImpl()->prepareMouseEvent( false, xm, ym, &mev ); - bool swallowEvent = dispatchMouseEvent(EventImpl::MOUSEUP_EVENT,mev.innerNode.handle(),mev.innerNonSharedNode.handle(),true, + swallowEvent = dispatchMouseEvent(EventImpl::MOUSEUP_EVENT,mev.innerNode.handle(),mev.innerNonSharedNode.handle(),true, d->clickCount,_mouse,false,DOM::NodeImpl::MouseRelease); @@ -1241,4 +1242,5 @@ void KHTMLView::viewportMouseReleaseEven if (r && r->isWidget()) _mouse->ignore(); + } if (!swallowEvent) { |