Tell all local emulators on resize
This commit is contained in:
@@ -131,7 +131,8 @@ namespace Network {
|
|||||||
|
|
||||||
string get_remote_diff( void );
|
string get_remote_diff( void );
|
||||||
|
|
||||||
RemoteState &get_remote_state_mutable( void ) { return received_states.back().state; }
|
typename list< TimestampedState<RemoteState > >::iterator begin( void ) { return received_states.begin(); }
|
||||||
|
typename list< TimestampedState<RemoteState > >::iterator end( void ) { return received_states.end(); }
|
||||||
|
|
||||||
uint64_t get_remote_state_num( void ) { return received_states.back().num; }
|
uint64_t get_remote_state_num( void ) { return received_states.back().num; }
|
||||||
|
|
||||||
|
|||||||
@@ -193,7 +193,11 @@ void client( const char *ip, int port, const char *key )
|
|||||||
network.get_current_state().push_back( res );
|
network.get_current_state().push_back( res );
|
||||||
|
|
||||||
/* tell local emulator -- there is probably a safer way to do this */
|
/* tell local emulator -- there is probably a safer way to do this */
|
||||||
network.get_remote_state_mutable().act( &res );
|
for ( list< Network::TimestampedState<Terminal::Complete> >::iterator i = network.begin();
|
||||||
|
i != network.end();
|
||||||
|
i++ ) {
|
||||||
|
i->state.act( &res );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (pollfds[ 0 ].revents | pollfds[ 1 ].revents)
|
if ( (pollfds[ 0 ].revents | pollfds[ 1 ].revents)
|
||||||
|
|||||||
Reference in New Issue
Block a user