<?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>487703</bug_id>
          
          <creation_ts>2024-05-28 17:30:30 +0000</creation_ts>
          <short_desc>workspace.activateWindow missing</short_desc>
          <delta_ts>2024-05-29 15:24:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>scripting</component>
          <version>6.0.5</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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>0</everconfirmed>
          <reporter name="Manuel Amador (Rudd-O)">rudd-o</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>fanzhuyifan</cc>
    
    <cc>kde</cc>
          
          <cf_commitlink></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>2322801</commentid>
    <comment_count>0</comment_count>
    <who name="Manuel Amador (Rudd-O)">rudd-o</who>
    <bug_when>2024-05-28 17:30:30 +0000</bug_when>
    <thetext>Cannot call activateWindow on workspacewrapper JS object, despite being documented here: https://develop.kde.org/docs/plasma/kwin/api/#read-only-properties-4

raiseWindow does not focus the supplied window so this is not the same as activating and is not enough.

Sample code at https://rudd-o.com/linux-and-free-software/how-to-raise-a-window-under-wayland-or-x11-when-using-kde-kwin-plasma/ see commented try/catch block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2322931</commentid>
    <comment_count>1</comment_count>
    <who name="David Redondo">kde</who>
    <bug_when>2024-05-29 07:23:02 +0000</bug_when>
    <thetext>I think the comment is wrong and you need to use  the active window property

https://develop.kde.org/docs/plasma/kwin/api/#read-write-properties</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2323091</commentid>
    <comment_count>2</comment_count>
    <who name="Manuel Amador (Rudd-O)">rudd-o</who>
    <bug_when>2024-05-29 15:24:06 +0000</bug_when>
    <thetext>Yep it appears the comment is wrong and it should be fixed, but activeWindow property works.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>