<?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>459103</bug_id>
          
          <creation_ts>2022-09-14 14:13:11 +0000</creation_ts>
          <short_desc>In Edit Mode toolbar, closing &quot;More Options&quot; popup doesn&apos;t return focus to the button that was used to open it</short_desc>
          <delta_ts>2023-11-06 20:15:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Panel</component>
          <version>master</version>
          <rep_platform>openSUSE</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>accessibility</keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fushan Wen">qydwhotmail</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
    
    <cc>niccolo.venerandi</cc>
    
    <cc>notmart</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-desktop/-/commit/8bad74fe9ed43af3081b8dd97cc17524b82c2d77</cf_commitlink>
          <cf_versionfixedin>6.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2152608</commentid>
    <comment_count>0</comment_count>
    <who name="Fushan Wen">qydwhotmail</who>
    <bug_when>2022-09-14 14:13:11 +0000</bug_when>
    <thetext>SUMMARY
Plasma Dialog does not restore old focus after it&apos;s closed.

STEPS TO REPRODUCE
1. requestActivate a Plasma dialog
2. Close the dialog
3. The old window focus should be restored</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152616</commentid>
    <comment_count>1</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2022-09-14 14:37:23 +0000</bug_when>
    <thetext>Can you maybe be a bit more explicit? It will surely help to understand what you are after.

Can you maybe provide a video of what you have and explain how it should be different? A test qml file would be handy as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152618</commentid>
    <comment_count>2</comment_count>
    <who name="Fushan Wen">qydwhotmail</who>
    <bug_when>2022-09-14 14:43:52 +0000</bug_when>
    <thetext>1. Open &quot;More Options&quot; in the panel edit toolbar
2. Assuming I use dialog.requestActivate(), the dialog should have focus now
3. Press esc to close the dialog
4. The focus is not restored to &quot;More Options&quot; button</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152625</commentid>
    <comment_count>3</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2022-09-14 14:55:05 +0000</bug_when>
    <thetext>What makes you think it&apos;s a problem with Plasma Dialog and not the toolbar editing mode? As I see it, It cancels everything... Not saying that this is what we want, just trying to get to the same conclusion as you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2152673</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-09-14 16:53:18 +0000</bug_when>
    <thetext>Indeed, it would appear to be a bug with just that.

The original description&apos;s steps to reproduce are working fine for me with regular windows, e.g. opening and closing kickoff causes the app window that was focused before to be focused again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2263847</commentid>
    <comment_count>5</comment_count>
    <who name="Niccolò Venerandi">niccolo</who>
    <bug_when>2023-11-06 20:15:48 +0000</bug_when>
    <thetext>Git commit 8bad74fe9ed43af3081b8dd97cc17524b82c2d77 by Niccolò Venerandi.
Committed on 06/11/2023 at 21:15.
Pushed by niccolove into branch &apos;master&apos;.

Redesign panel settings with a dialog

This moves all panel options in a single dialog that floats near the panel.
Related: bug 450892, bug 458008, bug 440274, bug 453693, bug 460844, bug 455478, bug 462980, bug 454720, bug 455476, bug 460845, bug 468009, bug 474354, bug 364456
FIXED-IN: 6.0

M  +495  -133  desktoppackage/contents/configuration/PanelConfiguration.qml
D  +0    -305  desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
M  +76   -84   desktoppackage/contents/configuration/panelconfiguration/PanelRepresentation.qml
M  +53   -266  desktoppackage/contents/configuration/panelconfiguration/Ruler.qml
M  +10   -37   desktoppackage/contents/configuration/panelconfiguration/SliderHandle.qml
D  +0    -594  desktoppackage/contents/configuration/panelconfiguration/ToolBar.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/8bad74fe9ed43af3081b8dd97cc17524b82c2d77</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>