<?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>163677</bug_id>
          
          <creation_ts>2008-06-10 05:59:12 +0000</creation_ts>
          <short_desc>hidden question dialog prevents application quit via taskbar</short_desc>
          <delta_ts>2012-04-24 21:01:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>2.8</version>
          <rep_platform>Compiled Sources</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>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jacques Kvam">jwkvam</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>adaptee</cc>
    
    <cc>drew.m.fisher</cc>
    
    <cc>kwin-bugs-null</cc>
          
          <cf_commitlink>http://commits.kde.org/konsole/66c0ddf7d1d5c9a7009f33da418d27a186651b92</cf_commitlink>
          <cf_versionfixedin>4.8.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>609465</commentid>
    <comment_count>0</comment_count>
    <who name="Jacques Kvam">jwkvam</who>
    <bug_when>2008-06-10 05:59:12 +0000</bug_when>
    <thetext>Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.3 
OS:                Linux

When closing an application from the taskbar that is either: 1. minimized, or 2. on another workspace. The popup notification that you are closing multiple tabs is not given, and the user is not given any feedback that anything actually happened.

The popup is finally displayed when the user goes to activate the same application in question.

------------
Reproduce:
1. Open konsole
2. Open another tab
3. Ensure that warn about multiple tabs when closing is enabled
4. Minimize konsole or switch to another workspace.
5. Right-click on the taskbar and close konsole.
6. *Nothing happens*
7. Activate konsole and finally see the warning about multiple tabs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>616434</commentid>
    <comment_count>1</comment_count>
    <who name="Drew Fisher">drew.m.fisher</who>
    <bug_when>2008-06-27 04:08:52 +0000</bug_when>
    <thetext>I can confirm this in Konqueror and Konsole in SVN r823211.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>616437</commentid>
    <comment_count>2</comment_count>
    <who name="A. Spehr">zahl</who>
    <bug_when>2008-06-27 04:27:06 +0000</bug_when>
    <thetext>question dialog doesn&apos;t get focus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1235422</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-03-12 01:33:33 +0000</bug_when>
    <thetext>Sorry for the late reply.

The behavior is intended.*
If a dialog for a minimized window is opened, it&apos;s kept minimize and the window is marked &quot;urgent&quot; (ie the taskbutton flashes) instead.
Obvious reason is that otherwise a unrelated dialog would be shown or the window would unconditionally be unminimized. (the urgent hint exists precisely to avoid such)

I see that the close dialog is a bit special in this regard, but that is unknown to the WM.

As a workaround you can set up a rule matching the dialog and force it to not be minimized.

The konsole developers might consider to unminimize the window with the dialog
-&gt; reassigning.

*kwin/manage.cpp:417 in current git master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248125</commentid>
    <comment_count>4</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-04-21 09:27:51 +0000</bug_when>
    <thetext>For the situation of minimized Konsole , I think the following code should do the job.

bool MainWindow::queryClose()
{
    ...

    if ( isMinimized() ) {
        showNormal();
    }

   int result = KMessageBox::warningYesNoCancel(....);
   ....
}

But for the situation of on a another virtual desktop, is it possible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248154</commentid>
    <comment_count>5</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-04-21 10:29:30 +0000</bug_when>
    <thetext>KWindowSystem::setOnDesktop(window()-&gt;winId(), KWindowSystem::currentDesktop());</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1248375</commentid>
    <comment_count>6</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-04-22 05:39:20 +0000</bug_when>
    <thetext>Git commit cf5ccf5f65fa490411a27f6a5ada271bdc188d3b by Jekyll Wu.
Committed on 21/04/2012 at 06:32.
Pushed by jekyllwu into branch &apos;master&apos;.

Ensure the confirmation dialog for closing window is visible to users
FIXED-IN: 4.9.0

M  +6    -0    src/MainWindow.cpp

http://commits.kde.org/konsole/cf5ccf5f65fa490411a27f6a5ada271bdc188d3b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249333</commentid>
    <comment_count>7</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2012-04-24 21:01:44 +0000</bug_when>
    <thetext>Git commit 66c0ddf7d1d5c9a7009f33da418d27a186651b92 by Jekyll Wu.
Committed on 21/04/2012 at 06:32.
Pushed by jekyllwu into branch &apos;KDE/4.8&apos;.

Ensure the confirmation dialog for closing window is visible to users
FIXED-IN: 4.8.3
(cherry picked from commit cf5ccf5f65fa490411a27f6a5ada271bdc188d3b)

M  +6    -0    src/MainWindow.cpp

http://commits.kde.org/konsole/66c0ddf7d1d5c9a7009f33da418d27a186651b92</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>