removed debug out, small fix for mac menu

svn path=/trunk/kdebase/kwin/; revision=68088
icc-effect-5.14.5
Matthias Ettrich 2000-10-17 13:09:59 +00:00
parent 8ba0c8171f
commit 0b4ba11c29
2 changed files with 7 additions and 6 deletions

View File

@ -875,7 +875,6 @@ bool Client::unmapNotify( XUnmapEvent& e )
case NormalState:
if ( !windowWrapper()->isVisibleTo( 0 ) && !e.send_event )
return TRUE; // this event was produced by us as well
qDebug("UnmapNotify for %s.", caption().latin1() );
// maybe we will be destroyed soon. Check this first.
XEvent ev;

View File

@ -997,10 +997,12 @@ void Workspace::activateClient( Client* c, bool force )
void Workspace::iconifyOrDeiconifyTransientsOf( Client* c )
{
if ( c->isIconified() || c->isShade() ) {
bool exclude_menu = !c->isIconified();
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
if ( (*it)->transientFor() == c->window()
&& !(*it)->isIconified()
&& !(*it)->isShade() ) {
&& !(*it)->isShade()
&& ( !exclude_menu || !(*it)->isMenu() ) ) {
(*it)->setMappingState( XIconicState );
(*it)->hide();
iconifyOrDeiconifyTransientsOf( (*it) );