~ubuntu-branches/ubuntu/hardy/kdebase-workspace/hardy

« back to all changes in this revision

Viewing changes to kwin/workspace.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-03-28 13:28:44 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080328132844-mx048p4g9rz4xy4b
Tags: 4:4.0.3-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
973
973
/*!
974
974
  Reread settings
975
975
 */
976
 
KWIN_PROCEDURE( CheckBorderSizesProcedure, Client, cl->checkBorderSizes() );
 
976
KWIN_PROCEDURE( CheckBorderSizesProcedure, Client, cl->checkBorderSizes( true ) );
977
977
 
978
978
void Workspace::slotReconfigure()
979
979
    {
1011
1011
    else
1012
1012
        {
1013
1013
        forEachClient( CheckBorderSizesProcedure());
 
1014
        foreach( Client* c, clients )
 
1015
            c->repaintDecoration();
1014
1016
        }
1015
1017
 
1016
1018
    if( options->electricBorders() == Options::ElectricAlways )
2598
2600
static QPoint last_cursor_pos;
2599
2601
static int last_buttons = 0;
2600
2602
static Time last_cursor_timestamp = CurrentTime;
 
2603
static QTimer* last_cursor_timer;
2601
2604
 
2602
2605
QPoint Workspace::cursorPos() const
2603
2606
    {
2613
2616
            &root_x, &root_y, &win_x, &win_y, &state );
2614
2617
        last_cursor_pos = QPoint( root_x, root_y );
2615
2618
        last_buttons = state;
2616
 
        QTimer::singleShot( 0, const_cast< Workspace* >( this ), SLOT( resetCursorPosTime()));
 
2619
        if( last_cursor_timer == NULL )
 
2620
            {
 
2621
            Workspace* ws = const_cast< Workspace* >( this );
 
2622
            last_cursor_timer = new QTimer( ws );
 
2623
            last_cursor_timer->setSingleShot( true );
 
2624
            connect( last_cursor_timer, SIGNAL( timeout()), ws, SLOT( resetCursorPosTime()));
 
2625
            }
 
2626
        last_cursor_timer->start( 0 );
2617
2627
        }
2618
2628
    return last_cursor_pos;
2619
2629
    }