tree: add Node::node_location
This commit is contained in:
parent
f75051281b
commit
289c201a69
20 changed files with 152 additions and 45 deletions
|
|
@ -18,7 +18,9 @@ use {
|
|||
leaks::Tracker,
|
||||
object::Object,
|
||||
rect::Rect,
|
||||
tree::{FindTreeResult, FoundNode, Node, OutputNode, StackedNode, WorkspaceNode},
|
||||
tree::{
|
||||
FindTreeResult, FoundNode, Node, NodeLocation, OutputNode, StackedNode, WorkspaceNode,
|
||||
},
|
||||
utils::{
|
||||
clonecell::CloneCell,
|
||||
copyhashmap::CopyHashMap,
|
||||
|
|
@ -233,7 +235,7 @@ impl XdgSurface {
|
|||
|
||||
fn set_workspace(&self, ws: &Rc<WorkspaceNode>) {
|
||||
self.workspace.set(Some(ws.clone()));
|
||||
self.surface.set_output(&ws.output.get());
|
||||
self.surface.set_output(&ws.output.get(), ws.location());
|
||||
let pu = self.popups.lock();
|
||||
for pu in pu.values() {
|
||||
pu.popup.xdg.set_workspace(ws);
|
||||
|
|
@ -241,7 +243,8 @@ impl XdgSurface {
|
|||
}
|
||||
|
||||
pub fn set_output(&self, output: &Rc<OutputNode>) {
|
||||
self.surface.set_output(output);
|
||||
self.surface
|
||||
.set_output(output, NodeLocation::Output(output.id));
|
||||
let pu = self.popups.lock();
|
||||
for pu in pu.values() {
|
||||
pu.popup.xdg.set_output(output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue