]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: simplify interface for view raise/focus
authorJohan Malm <jgm323@gmail.com>
Sat, 16 Oct 2021 18:44:54 +0000 (19:44 +0100)
committerJohan Malm <jgm323@gmail.com>
Sat, 16 Oct 2021 18:44:54 +0000 (19:44 +0100)
commit9a290feeeab14d6800a438ce99cda0b9f1c84f29
tree900112698fa8a752722d211475ac7be1b3b0546d
parent70144ac11348a538b9998b9dc1a29a1cae259c41
desktop: simplify interface for view raise/focus

Split desktop_focus_view() into the following two functions:
  - desktop_focus_and_activate_view()
  - desktop_raise_view()

Always call view_set_activated() rather than using the private
set_activated(). This keeps the code cleaner and ensures
wlr_foreign_toplevel_handle_v1_set_activated() is called.
include/labwc.h
src/cursor.c
src/desktop.c
src/keyboard.c
src/xdg.c
src/xwayland.c