implements PLN-0060 focused window ownership API
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::os::SystemOS;
|
||||
use crate::task::TaskId;
|
||||
use crate::windows::{Window, WindowId, WindowOwner};
|
||||
use prometeu_hal::color::Color;
|
||||
use prometeu_hal::primitives::Rect;
|
||||
@@ -26,6 +27,10 @@ impl<'a> WindowFacade<'a> {
|
||||
self.os.window_manager.focused
|
||||
}
|
||||
|
||||
pub fn focused_window_belongs_to_task(&self, task_id: TaskId) -> bool {
|
||||
self.os.window_manager.focused_window_belongs_to_task(task_id)
|
||||
}
|
||||
|
||||
pub fn close_window(&mut self, id: WindowId) {
|
||||
self.os.window_manager.remove_window(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user