mirror of
https://github.com/labwc/labwc.git
synced 2026-02-15 22:05:25 -05:00
desktop: switch workspaces and optionally raise in desktop_focus_view()
Make desktop_focus_view() always switch to the workspace containing the view being focused. It doesn't make much sense for an invisible view to have the keyboard focus. Also add an optional "raise" parameter to desktop_focus_view(). This allows the common pattern of desktop_focus_view() + view_move_to_front() to be reduced to a single function call.
This commit is contained in:
parent
e77330bc3f
commit
e5aef03319
11 changed files with 44 additions and 43 deletions
|
|
@ -377,7 +377,7 @@ void foreign_toplevel_update_outputs(struct view *view);
|
|||
* cannot assume this means that the window actually has keyboard
|
||||
* or pointer focus, in this compositor are they called together.
|
||||
*/
|
||||
void desktop_focus_view(struct view *view);
|
||||
void desktop_focus_view(struct view *view, bool raise);
|
||||
void desktop_arrange_all_views(struct server *server);
|
||||
void desktop_focus_output(struct output *output);
|
||||
struct view *desktop_topmost_mapped_view(struct server *server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue