view: Attempt to keep non-floating views on the same output

- Make view_discover_output() static
- Call view_discover_output() only for floating views
- Deprecate view_output(); make it use view->output when possible
This commit is contained in:
John Lindgren 2023-02-20 16:22:01 -05:00 committed by Johan Malm
parent c33a404dc1
commit 64bea4f511
2 changed files with 40 additions and 32 deletions

View file

@ -151,7 +151,6 @@ void view_move_to_workspace(struct view *view, struct workspace *workspace);
void view_set_decorations(struct view *view, bool decorations);
void view_toggle_fullscreen(struct view *view);
void view_adjust_for_layout_change(struct view *view);
void view_discover_output(struct view *view);
void view_move_to_edge(struct view *view, const char *direction);
void view_snap_to_edge(struct view *view, const char *direction,
bool store_natural_geometry);