From kde-commits Mon Aug 17 17:28:51 2009 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 17 Aug 2009 17:28:51 +0000 To: kde-commits Subject: branches/work/~seli/randr43/module Message-Id: <1250530131.768540.19225.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125053015220052 SVN commit 1012453 by lunakl: TODO file. A TODO branches/work/~seli/randr/module/TODO#854240 M +1 -6 randrmonitor.cpp --- branches/work/~seli/randr43/module/randrmonitor.cpp #1012452:1012453 @@ -69,7 +69,6 @@ // It looks like we need a separate window for getting the events, so that we don't // change e.g. Qt's event mask. window = XCreateSimpleWindow( dpy, DefaultRootWindow( dpy ), 0, 0, 1, 1, 0, 0, 0 ); - // TODO zkontrolovat, ze tohle opravdu nerusi randr eventmask pro Qt XRRSelectInput( dpy, window, RROutputChangeNotifyMask ); // HACK: see poll() QTimer* timer = new QTimer( this ); @@ -96,15 +95,11 @@ XRRNotifyEvent* e2 = reinterpret_cast< XRRNotifyEvent* >( e ); if( e2->subtype == RRNotify_OutputChange ) // TODO && e2->window == window ) { -// kdDebug() << "WIN:" << e2->window << window << DefaultRootWindow( QX11Info::display()); QStringList newMonitors = connectedMonitors(); if( newMonitors == currentMonitors ) return; - // well, let's say plugging in a monitor is a user activity - kapp->updateUserTimestamp(); + kapp->updateUserTimestamp(); // well, let's say plugging in a monitor is a user activity #warning Modal dialog, stupid, fix. - // TODO nedelat nic, kdyz kcmshell4 display uz je otevreny - // TODO musi se zobrazit na spravnem monitoru (tj. ne na vypnutem) QString change; QString question = ( newMonitors.count() < currentMonitors.count()