1
0
Fork 0
forked from wry/wry

ext-workspace: implement v1

This commit is contained in:
Julian Orth 2025-01-24 16:32:59 +01:00
parent 2b76083d6e
commit a4e197d92a
22 changed files with 948 additions and 4 deletions

View file

@ -197,6 +197,7 @@ impl ConnectorHandler {
before_latch_event: Default::default(),
tray_start_rel: Default::default(),
tray_items: Default::default(),
ext_workspace_groups: Default::default(),
});
on.update_visible();
on.update_rects();
@ -259,6 +260,7 @@ impl ConnectorHandler {
self.state.add_global(&tray);
self.state.tree_changed();
on.update_presentation_type();
self.state.workspace_managers.announce_output(&on);
'outer: loop {
while let Some(event) = self.data.connector.event() {
match event {
@ -331,6 +333,9 @@ impl ConnectorHandler {
};
move_ws_to_output(&ws, &target, config);
}
for group in on.ext_workspace_groups.lock().drain_values() {
group.handle_destroyed();
}
for seat in self.state.globals.seats.lock().values() {
seat.cursor_group().output_disconnected(&on, &target);
}