<?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>304526</bug_id>
          
          <creation_ts>2012-08-03 23:16:22 +0000</creation_ts>
          <short_desc>okular --unique does not raise its existing window</short_desc>
          <delta_ts>2012-08-21 22:42:05 +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>0.14.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>junior-jobs</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergei Ivanov">svivanov</reporter>
          <assigned_to name="Okular developers">okular-devel</assigned_to>
          <cc>aacid</cc>
    
    <cc>adaptee</cc>
          
          <cf_commitlink>http://commits.kde.org/okular/09067debaf933c2f9b4ea0a7c701e699fe62126e</cf_commitlink>
          <cf_versionfixedin>4.10.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1281174</commentid>
    <comment_count>0</comment_count>
    <who name="Sergei Ivanov">svivanov</who>
    <bug_when>2012-08-03 23:16:22 +0000</bug_when>
    <thetext>When okular is started with &quot;--unique&quot; and an instance is already running, its window is not raised. I was hit by this problem when I tried to use okular as an external PDF viewer in kile.


Reproducible: Always

Steps to Reproduce:
1. In a terminal, run &apos;okular --unique somefile.pdf &amp;&apos;
2. Make sure the okular window overlaps with the terminal one.
3. Raise the terminal window (or any other that overlaps with okular&apos;s).
4. Run &apos;okular --unique somefile.pdf &amp;&apos; again

Actual Results:  
On the second run, the existing okular window gets redrawn but is not raised. It stays below the  terminal window. This happens even when &apos;Focus stealing prevention level&apos; in kwin configuration is set to &apos;None&apos;.


Expected Results:  
The window should be raised. Every other program with &apos;one window&apos; functionality does this.

Okular always had this problem (in KDE3 days too). I did not report it back then just because I had no use for the &quot;--unique&quot; option until recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1283444</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-08-09 22:54:10 +0000</bug_when>
    <thetext>I will have a look &quot;soon&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1289823</commentid>
    <comment_count>2</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2012-08-21 22:42:05 +0000</bug_when>
    <thetext>Git commit 09067debaf933c2f9b4ea0a7c701e699fe62126e by Albert Astals Cid.
Committed on 22/08/2012 at 00:41.
Pushed by aacid into branch &apos;master&apos;.

Make --unique also raise the window
FIXED-IN: 4.10.0

M  +3    -1    shell/main.cpp
M  +14   -2    shell/shell.cpp
M  +6    -0    shell/shell.h

http://commits.kde.org/okular/09067debaf933c2f9b4ea0a7c701e699fe62126e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>