<?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>230807</bug_id>
          
          <creation_ts>2010-03-15 09:57:06 +0000</creation_ts>
          <short_desc>Alt+Tab box does not work correctly with multiple modal dialogs</short_desc>
          <delta_ts>2010-03-20 12:07:46 +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>general</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</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 name="Michael Zanetti">mzanetti</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          
          
          <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>933914</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Zanetti">mzanetti</who>
    <bug_when>2010-03-15 09:57:06 +0000</bug_when>
    <thetext>Version:            (using KDE 4.4.1)
Compiler:          gcc 
OS:                Linux
Installed from:    Archlinux Packages

Steps to reproduce:
- Open some windows. At least 3.
- Open a modal dialog on at least two of the windows. (e.g. the settings dialog or a file-open dialog)
- Cycle through the windows list using Alt+Tab

Expected behaviour: Window switching should work just like it does without modal dialogs

Actual behaviour: The modal windows produce empty entries in the Alt+Tab list. Some entries are skipped and the order is messed up.

More open windows make this behaviour worse. But I&apos;m able to reproduce it always with at least 5 windows (3 normal + 2 modal)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>933918</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2010-03-15 10:00:25 +0000</bug_when>
    <thetext>could this be a duplicate of bug #228186?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>933933</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Zanetti">mzanetti</who>
    <bug_when>2010-03-15 10:30:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; could this be a duplicate of bug #228186?

Could be...I&apos;m pretty sure it is related somehow. In my case the modal dialogs are not often shown twice. It&apos;s more that the whole list in the tabbox gets messed up. Sometimes I have duplicate windows in it, sometimes empty spaces, sometimes selecting an entry actually raises a different window.

I just made a quick screencast to show the bahaviour. You can see everything working fine in the beginning. As soon as I open the first modal window the empty spaces appear in the tabbox. In this example I haven&apos;t been able to select rekonq using alt+tab any more as soon as the second modal window was open. It just got skipped by the tabbox. You can also see how for example selecting kdevelop in the tabbox actually raises konversation etc.

http://follefuder.org/tabbox_modal.ogv</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936804</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2010-03-20 11:47:09 +0000</bug_when>
    <thetext>damn I&apos;m stupid :( 
svn rev 984690:
else if( !list.contains( modal ))

became in svn rev 1022861:
else if( clientList().contains( modal-&gt;tabBoxClient() ) )

I&apos;m going to test it and commit the fix (I&apos;m very sure it&apos;s this idioticy)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936810</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2010-03-20 12:04:20 +0000</bug_when>
    <thetext>SVN commit 1105473 by graesslin:

Prevent modal dialogs to be shown twice in alt+tab list.
BUG: 230807
CCBUG: 228186

 M  +1 -1      tabbox.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1105473</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>936813</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Flöser">mgraesslin</who>
    <bug_when>2010-03-20 12:07:46 +0000</bug_when>
    <thetext>SVN commit 1105476 by graesslin:

Backport rev 1105473: Prevent modal dialogs to be shown twice in alt+tab list.
CCBUG: 230807
CCBUG: 228186



 M  +1 -1      tabbox.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1105476</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>