<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/116878/">https://git.reviewboard.kde.org/r/116878/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On March 29th, 2014, 2:50 p.m. CCT, <b>Dennis Nienhüser</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">That works around the problem, because the different initialization logic results in a different order of event filters installed on MarbleWidget: MarbleWidgetInputHandler will not install the event filters anymore in its ctor, but during installPluginEventFilter which is triggered by the layer manager initializing the plugin on its first render attempt. The (simplified) event filter order is then
without the patch: MarbleWidgetDefaultInputHandler => ScaleBar, OverviewMap
with the patch: ScaleBar, OverviewMap => MarbleWidgetDefaultInputHandler
The plugin's eventFilter method is then called before MarbleWidgetDefaultInputHandler does eat the MouseButtonRelease event, which prevents the bug. I'd rather have the original problem solved though, MarbleWidgetDefaultInputHandler should behave in a sane way and not require workarounds.
The following fixes the problem here:
git show -R c4e0678 | sed 's@src/lib/@src/lib/marble/@' | patch -p1
See https://bugs.kde.org/show_bug.cgi?id=242414 as well. The original bug (oxygen doing silly things) does not seem to occur anymore here, so reverting c4e0678 seems ok from my point of view. I'd like to have some other people test it before though.
Everyone, please give the following a try:
# change directory to marble sources
git show -R c4e0678 | sed 's@src/lib/@src/lib/marble/@' | patch -p1
# compile and run marble
# test that dragging the globe does not move the whole window as described in https://bugs.kde.org/show_bug.cgi?id=242414
</pre>
</blockquote>
<p>On March 29th, 2014, 3:26 p.m. CCT, <b>Sanjiban Bairagya</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Tested. Dragging the globe does not move the whole window</pre>
</blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Same here. As expected the window is not moved on dragging the globe.</pre>
<br />
<p>- Abhinav</p>
<br />
<p>On March 19th, 2014, 12:24 a.m. CCT, Abhinav Gangwar wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Marble.</div>
<div>By Abhinav Gangwar.</div>
<p style="color: grey;"><i>Updated March 19, 2014, 12:24 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>
<a href="http://bugs.kde.org/show_bug.cgi?id=324862">324862</a>
</div>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
marble
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Now the info boxes (scale bar and map overview) doesn't follow the mouse.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Produces expected results on my system</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/plugins/render/mapscale/MapScaleFloatItem.h <span style="color: grey">(4a0f922)</span></li>
<li>src/plugins/render/mapscale/MapScaleFloatItem.cpp <span style="color: grey">(ea869bb)</span></li>
<li>src/plugins/render/overviewmap/OverviewMap.h <span style="color: grey">(4c9ada8)</span></li>
<li>src/plugins/render/overviewmap/OverviewMap.cpp <span style="color: grey">(ee52f03)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/116878/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>