~ubuntu-branches/ubuntu/trusty/spice/trusty-proposed

« back to all changes in this revision

Viewing changes to client/screen.cpp

  • Committer: Package Import Robot
  • Author(s): Liang Guo
  • Date: 2012-01-27 23:28:26 UTC
  • mfrom: (0.4.1) (0.2.3)
  • Revision ID: package-import@ubuntu.com-20120127232826-jrdcr7331v69h5jz
Tags: 0.10.1-1
* New upstream release
* Refresh libspice-server1.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    , _key_interception (false)
88
88
    , _update_by_timer (true)
89
89
    , _size_locked (false)
90
 
    , _forec_update_timer (0)
 
90
    , _menu_needs_update (false)
 
91
    , _force_update_timer (0)
91
92
    , _update_timer (new UpdateTimer(this))
92
93
    , _composit_area (NULL)
93
94
    , _update_mark (1)
401
402
    if (is_dirty()) {
402
403
        need_update = true;
403
404
    } else {
404
 
        if (!_forec_update_timer) {
 
405
        if (!_force_update_timer) {
405
406
            _owner.deactivate_interval_timer(*_update_timer);
406
407
            _periodic_update = false;
407
408
        }
537
538
    _mouse_captured = true;
538
539
    _window.hide_cursor();
539
540
    reset_mouse_pos();
540
 
    _window.cupture_mouse();
 
541
    _window.capture_mouse();
541
542
}
542
543
 
543
544
void RedScreen::relase_mouse()
741
742
 
742
743
void RedScreen::enter_modal_loop()
743
744
{
744
 
    _forec_update_timer++;
 
745
    _force_update_timer++;
745
746
    activate_timer();
746
747
}
747
748
 
748
749
void RedScreen::exit_modal_loop()
749
750
{
750
 
    ASSERT(_forec_update_timer > 0)
751
 
    _forec_update_timer--;
 
751
    ASSERT(_force_update_timer > 0)
 
752
    _force_update_timer--;
752
753
}
753
754
 
754
755
void RedScreen::pre_migrate()
784
785
    _origin.x = _origin.y = 0;
785
786
    _window.set_origin(0, 0);
786
787
    show();
 
788
    if (_menu_needs_update) {
 
789
        update_menu();
 
790
    }
787
791
    _full_screen = false;
788
792
    _out_of_sync = false;
789
793
    _frame_area = false;
875
879
void RedScreen::update_menu()
876
880
{
877
881
    AutoRef<Menu> menu(_owner.get_app_menu());
878
 
    _window.set_menu(*menu);
 
882
    int ret = _window.set_menu(*menu);
 
883
    _menu_needs_update = (ret != 0); /* try again if menu update failed */
879
884
}
880
885
 
881
886
void RedScreen::on_exposed_rect(const SpiceRect& area)
934
939
    _window.unset_type_gl();
935
940
}
936
941
#endif // USE_OPENGL
937