mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-01 13:10:43 +00:00
spicec: Remove empty show / hide gui functions
When compiling without gui support just don't call show / hide gui, rather then making them stubs, this makes it easier to follow what is going on.
This commit is contained in:
parent
a6d76fb0fc
commit
cec1d98029
@ -841,7 +841,9 @@ void Application::on_disconnected(int error_code)
|
||||
|
||||
// todo: display special notification for host switch (during migration)
|
||||
set_state(DISCONNECTED);
|
||||
#ifdef USE_GUI
|
||||
show_gui();
|
||||
#endif
|
||||
if (host_switch) {
|
||||
_client.connect(true);
|
||||
}
|
||||
@ -853,7 +855,9 @@ void Application::on_visibility_start(int screen_id)
|
||||
return;
|
||||
}
|
||||
set_state(VISIBILITY);
|
||||
#ifdef USE_GUI
|
||||
hide_gui();
|
||||
#endif
|
||||
show_info_layer();
|
||||
}
|
||||
|
||||
|
||||
@ -322,10 +322,6 @@ private:
|
||||
void create_gui_barrier(RedScreen& screen, int id);
|
||||
void destroyed_gui_barrier(int id);
|
||||
void destroyed_gui_barriers();
|
||||
#else // USE_GUI
|
||||
void show_gui() {}
|
||||
void hide_gui() {}
|
||||
|
||||
#endif // USE_GUI
|
||||
|
||||
// returns the press value before operation (i.e., if it was already pressed)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user