View | Details | Raw Unified | Return to bug 128429
Collapse All | Expand All

(-)kdebase/kdesktop/lock/lockprocess.cc (-1 / +18 lines)
Lines 45-50 Link Here
45
#include <qfile.h>
45
#include <qfile.h>
46
#include <qsocketnotifier.h>
46
#include <qsocketnotifier.h>
47
#include <qvaluevector.h>
47
#include <qvaluevector.h>
48
#include <qtooltip.h>
48
49
49
#include <qdatetime.h>
50
#include <qdatetime.h>
50
51
Lines 119-124 Link Here
119
                        qt_xscreen()), &rootAttr);
120
                        qt_xscreen()), &rootAttr);
120
    mRootWidth = rootAttr.width;
121
    mRootWidth = rootAttr.width;
121
    mRootHeight = rootAttr.height;
122
    mRootHeight = rootAttr.height;
123
    { // trigger creation of QToolTipManager, it does XSelectInput() on the root window
124
    QWidget w;
125
    QToolTip::add( &w, "foo" );
126
    }
122
    XSelectInput( qt_xdisplay(), qt_xrootwin(),
127
    XSelectInput( qt_xdisplay(), qt_xrootwin(),
123
        SubstructureNotifyMask | rootAttr.your_event_mask );
128
        SubstructureNotifyMask | rootAttr.your_event_mask );
124
129
Lines 857-863 Link Here
857
    killTimer(mAutoLogoutTimerId);
862
    killTimer(mAutoLogoutTimerId);
858
    PasswordDlg passDlg( this, &greetPlugin);
863
    PasswordDlg passDlg( this, &greetPlugin);
859
864
860
    return execDialog( &passDlg ) == QDialog::Accepted;
865
    int ret = execDialog( &passDlg );
866
867
    XWindowAttributes rootAttr;
868
    XGetWindowAttributes(qt_xdisplay(), RootWindow(qt_xdisplay(),
869
                        qt_xscreen()), &rootAttr);
870
    if(( rootAttr.your_event_mask & SubstructureNotifyMask ) == 0 )
871
    {
872
        kdWarning() << "ERROR: Something removed SubstructureNotifyMask from the root window!!!" << endl;
873
        XSelectInput( qt_xdisplay(), qt_xrootwin(),
874
            SubstructureNotifyMask | rootAttr.your_event_mask );
875
    }
876
877
    return ret == QDialog::Accepted;
861
}
878
}
862
879
863
static void fakeFocusIn( WId window )
880
static void fakeFocusIn( WId window )

Return to bug 128429