mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-11 11:26:33 +00:00
client: restore mouse capture state after screen resizing
This commit is contained in:
parent
ff2e0dbdb7
commit
941ba9bf5c
@ -192,7 +192,14 @@ void RedScreen::set_mode(int width, int height, int depth)
|
||||
capture_mouse();
|
||||
}
|
||||
} else {
|
||||
bool cuptur = is_mouse_captured();
|
||||
if (cuptur) {
|
||||
relase_mouse();
|
||||
}
|
||||
_window.resize(_size.x, _size.y);
|
||||
if (_active && cuptur) {
|
||||
capture_mouse();
|
||||
}
|
||||
}
|
||||
notify_new_size();
|
||||
}
|
||||
@ -677,7 +684,6 @@ void RedScreen::on_activate()
|
||||
_owner.on_activate_screen(this);
|
||||
}
|
||||
|
||||
|
||||
void RedScreen::on_start_key_interception()
|
||||
{
|
||||
_key_interception = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user