[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    need to test something on laptops
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2003-10-02 16:16:46
[Download RAW message or body]

Hello,

 as a part of certain kwin related "research", I'd need if people who run KDE 
on laptops could run the attached app after X startup, and send me the 
output. If you have a laptop, please shut down your X, start it again, don't 
start KDE (use e.g. the failsafe mode), run the attached app, and mail me the 
numbers it prints, your XFree86 version, and what kind of notebook you have. 
Mail directly to me, not to the list please.

 Thanks

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/

["a.cpp" (text/x-c++src)]

#include <kcmdlineargs.h>
#include <kapplication.h>
#include <kdebug.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>

extern Time qt_x_time;

int main( int argc, char* argv[] )
    {
    KCmdLineArgs::init( argc, argv, "a", "b", "c" );
    KApplication::disableAutoDcopRegistration();
    KApplication app;
    static QWidget* w = 0;
    if ( !w )
        w = new QWidget;
    long data = 1;
    XChangeProperty(qt_xdisplay(), w->winId(), XA_ATOM, XA_ATOM, 32,
                    PropModeAppend, (unsigned char*) &data, 1);
    XEvent ev;
    XWindowEvent( qt_xdisplay(), w->winId(), PropertyChangeMask, &ev );
    kdDebug() << qt_x_time << ":" << ev.xproperty.time << endl;
    }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic