Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 211469 | Differences between
and this patch

Collapse All | Expand All

(-)kdebase.sav/kdesktop/desktop.cc (-3 / +6 lines)
Lines 516-524 void KDesktop::popupExecuteCommand(const Link Here
516
  if ( m_miniCli->isVisible() ) {
516
  if ( m_miniCli->isVisible() ) {
517
      KWin::forceActiveWindow( m_miniCli->winId() );
517
      KWin::forceActiveWindow( m_miniCli->winId() );
518
  } else {
518
  } else {
519
      QRect rect = KGlobalSettings::desktopGeometry(QCursor::pos());
519
      NETRootInfo i( qt_xdisplay(), NET::Supported );
520
      m_miniCli->move(rect.x() + (rect.width() - m_miniCli->width())/2,
520
      if( !i.isSupported( NET::WM2FullPlacement )) {
521
                      rect.y() + (rect.height() - m_miniCli->height())/2);
521
          QRect rect = KGlobalSettings::desktopGeometry(QCursor::pos());
522
          m_miniCli->move(rect.x() + (rect.width() - m_miniCli->width())/2,
523
                          rect.y() + (rect.height() - m_miniCli->height())/2);
524
      }
522
      m_miniCli->show(); // non-modal
525
      m_miniCli->show(); // non-modal
523
  }
526
  }
524
}
527
}
(-)kdebase.sav/kdesktop/minicli.cpp (-5 / +16 lines)
Lines 369-374 int Minicli::runCommand() Link Here
369
    cmd = uri.path();
369
    cmd = uri.path();
370
  else
370
  else
371
    cmd = uri.url();
371
    cmd = uri.url();
372
    
373
  QCString asn;
374
  if( qApp->desktop()->isVirtualDesktop())
375
  {
376
    asn = KStartupInfo::createNewStartupId();
377
    KStartupInfoId id;
378
    id.initId( asn );
379
    KStartupInfoData data;
380
    data.setXinerama( qApp->desktop()->screenNumber( this ));
381
    KStartupInfo::sendChange( id, data );
382
  }
372
383
373
  // Determine whether the application should be run through
384
  // Determine whether the application should be run through
374
  // the command line (terminal) interface...
385
  // the command line (terminal) interface...
Lines 504-510 int Minicli::runCommand() Link Here
504
        case KURIFilterData::HELP:
515
        case KURIFilterData::HELP:
505
        {
516
        {
506
          // No need for kfmclient, KRun does it all (David)
517
          // No need for kfmclient, KRun does it all (David)
507
          (void) new KRun( m_filterData->uri(), parentWidget());
518
          (void) new KRun( m_filterData->uri(), parentWidget(), asn );
508
          return 0;
519
          return 0;
509
        }
520
        }
510
        case KURIFilterData::EXECUTABLE:
521
        case KURIFilterData::EXECUTABLE:
Lines 516-522 int Minicli::runCommand() Link Here
516
            if (service && service->isValid() && service->type() == "Application")
527
            if (service && service->isValid() && service->type() == "Application")
517
            {
528
            {
518
              notifyServiceStarted(service);
529
              notifyServiceStarted(service);
519
              KRun::run(*service, KURL::List());
530
              KRun::run(*service, KURL::List(), parentWidget(), asn );
520
              return 0;
531
              return 0;
521
            }
532
            }
522
          }
533
          }
Lines 551-557 int Minicli::runCommand() Link Here
551
          if (service && service->isValid() && service->type() == "Application")
562
          if (service && service->isValid() && service->type() == "Application")
552
          {
563
          {
553
            notifyServiceStarted(service);
564
            notifyServiceStarted(service);
554
            KRun::run(*service, KURL::List(), this);
565
            KRun::run(*service, KURL::List(), parentWidget(), asn );
555
            return 0;
566
            return 0;
556
          }
567
          }
557
568
Lines 559-565 int Minicli::runCommand() Link Here
559
          if (service && service->isValid() && service->type() == "Application")
570
          if (service && service->isValid() && service->type() == "Application")
560
          {
571
          {
561
            notifyServiceStarted(service);
572
            notifyServiceStarted(service);
562
            KRun::run(*service, KURL::List(), this);
573
            KRun::run(*service, KURL::List(), parentWidget(), asn );
563
            return 0;
574
            return 0;
564
          }
575
          }
565
576
Lines 571-577 int Minicli::runCommand() Link Here
571
      }
582
      }
572
    }
583
    }
573
584
574
    if ( KRun::runCommand( cmd, exec, m_iconName ) )
585
    if ( KRun::runCommand( cmd, exec, m_iconName, parentWidget(), asn ) )
575
      return 0;
586
      return 0;
576
    else
587
    else
577
    {
588
    {

Return to bug 211469