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:
Waldo Bastian 2000-05-29 22:38:43 +00:00
parent 81b4d60d87
commit 59e4a2c8fc

View file

@ -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() )
{