WABA: Try to kill the window under that is actually under the cursor.
svn path=/trunk/kdebase/kwin/; revision=51107
This commit is contained in:
parent
81b4d60d87
commit
59e4a2c8fc
1 changed files with 3 additions and 3 deletions
|
@ -1926,11 +1926,11 @@ void Workspace::slotKillWindow()
|
|||
|
||||
void Workspace::killWindowAtPosition(int x, int y)
|
||||
{
|
||||
ClientList::ConstIterator it(clients.begin());
|
||||
for ( ; it != clients.end(); ++it)
|
||||
ClientList::ConstIterator it(stacking_order.fromLast());
|
||||
for ( ; it != stacking_order.end(); --it)
|
||||
{
|
||||
Client *client = (*it);
|
||||
if ( client->rect().contains(QPoint(x, y)) &&
|
||||
if ( client->frameGeometry().contains(QPoint(x, y)) &&
|
||||
client->isOnDesktop( currentDesktop() ) &&
|
||||
!client->isIconified() )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue