<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>409638</bug_id>
          
          <creation_ts>2019-07-09 01:37:48 +0000</creation_ts>
          <short_desc>Inline note with pen opens new notes while hovering</short_desc>
          <delta_ts>2019-12-01 10:44:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>okular</product>
          <component>general</component>
          <version>1.3.3</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ffuhrmann1</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>haxtibal</cc>
    
    <cc>nate</cc>
    
    <cc>oliver.sander</cc>
    
    <cc>rafael.brandmaier</cc>
          
          <cf_commitlink>https://invent.kde.org/kde/okular/commit/00640370d3b138ef247b5a67a4fc019b968a3cf3</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1867848</commentid>
    <comment_count>0</comment_count>
    <who name="">ffuhrmann1</who>
    <bug_when>2019-07-09 01:37:48 +0000</bug_when>
    <thetext>SUMMARY


STEPS TO REPRODUCE
1. Thinkpad Pen Pro used on Lenovo Thinkpad L390 Yoga.
2. Try to make an Inline-Note by using this Pen.
3. Hover for a few seconds with the pen over the screen (while having the review option &quot;inline-note&quot; selected).

OBSERVED RESULT
An extreme amount of new windows to make a new inline text note is opened (800+ in my case). While being with the pen in proximity to the screen, the responsiveness was really slow (probably because of the new notes popping up). This occurred only when using the Pen. While using the Trackpad or Finger on the Touchscreen the software reacted as expected.

EXPECTED RESULT
Just one new popup windows for the input of a text for the inline-note.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 18.04, gnome 3.28.2
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1867910</commentid>
    <comment_count>1</comment_count>
    <who name="Oliver Sander">oliver.sander</who>
    <bug_when>2019-07-09 11:20:33 +0000</bug_when>
    <thetext>Indeed.  I can confirm this with the current git master.  Offhand I am a little surprised, because there is not much code in Okular that distinguishes between a pen/stylus and a mouse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868691</commentid>
    <comment_count>2</comment_count>
    <who name="Oliver Sander">oliver.sander</who>
    <bug_when>2019-07-14 08:28:09 +0000</bug_when>
    <thetext>Could this be related to what Tobias describes in 

  https://phabricator.kde.org/D15347

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869023</commentid>
    <comment_count>3</comment_count>
    <who name="Tobias Deiminger">haxtibal</who>
    <bug_when>2019-07-15 20:18:31 +0000</bug_when>
    <thetext>(In reply to Oliver Sander from comment #1)
&gt; Indeed.  I can confirm this with the current git master.

Oliver, could you give https://invent.kde.org/kde/okular/merge_requests/13 a try with real pen/stylus hardware?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1869084</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Sander">oliver.sander</who>
    <bug_when>2019-07-16 03:59:42 +0000</bug_when>
    <thetext>I tried, and it seems that your patch fixes the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891217</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2019-11-12 21:36:42 +0000</bug_when>
    <thetext>*** Bug 413990 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1891305</commentid>
    <comment_count>6</comment_count>
    <who name="Rafael Brandmaier">rafael.brandmaier</who>
    <bug_when>2019-11-13 10:33:26 +0000</bug_when>
    <thetext>Just FYI ffuhmann1 has the exact same laptop as me, if that helps clear up the situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894239</commentid>
    <comment_count>7</comment_count>
    <who name="Tobias Deiminger">haxtibal</who>
    <bug_when>2019-12-01 10:44:56 +0000</bug_when>
    <thetext>Git commit 00640370d3b138ef247b5a67a4fc019b968a3cf3 by Tobias Deiminger.
Committed on 01/12/2019 at 10:00.
Pushed by tobiasdeiminger into branch &apos;release/19.12&apos;.

Fix spurious dialogs in PickPointEngine

In the case of multiple input events, the local event loop of
QInputDialog was processing pending events before m_creationCompleted
could be cleared. This allowed recursive calls to PickPointEngine::end,
even on wrong events (e.g. MouseMove shouldn&apos;t cause end(), but it did).
Related: bug 413990

M  +7    -0    ui/pageviewannotator.cpp

https://invent.kde.org/kde/okular/commit/00640370d3b138ef247b5a67a4fc019b968a3cf3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>