shell: rename space_for_{window -> surface}
This commit is contained in:
parent
4de316cbce
commit
8ecc1345a6
6 changed files with 14 additions and 14 deletions
|
|
@ -120,7 +120,7 @@ impl Shell {
|
|||
) {
|
||||
// update FocusStack and notify layouts about new focus (if any window)
|
||||
if let Some(surface) = surface {
|
||||
if let Some(workspace) = self.space_for_surface_mut(surface) {
|
||||
if let Some(workspace) = self.space_for_window_mut(surface) {
|
||||
if let Some(window) = workspace
|
||||
.space
|
||||
.window_for_surface(surface, WindowSurfaceType::ALL)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ impl Shell {
|
|||
) {
|
||||
// TODO touch grab
|
||||
if let Some(pointer) = seat.get_pointer() {
|
||||
let workspace = self.space_for_surface_mut(window.toplevel().wl_surface()).unwrap();
|
||||
let workspace = self.space_for_window_mut(window.toplevel().wl_surface()).unwrap();
|
||||
if workspace.fullscreen.values().any(|w| w == window) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ impl Shell {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn space_for_surface(&self, surface: &WlSurface) -> Option<&Workspace> {
|
||||
pub fn space_for_window(&self, surface: &WlSurface) -> Option<&Workspace> {
|
||||
self.spaces.iter().find(|workspace| {
|
||||
workspace
|
||||
.space
|
||||
|
|
@ -467,7 +467,7 @@ impl Shell {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn space_for_surface_mut(&mut self, surface: &WlSurface) -> Option<&mut Workspace> {
|
||||
pub fn space_for_window_mut(&mut self, surface: &WlSurface) -> Option<&mut Workspace> {
|
||||
self.spaces.iter_mut().find(|workspace| {
|
||||
workspace
|
||||
.space
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue