diff options
| author | outfoxxed <outfoxxed@outfoxxed.me> | 2023-07-19 03:39:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-19 12:39:45 +0200 |
| commit | 5cd5631fb226e315a233473c961714ed1c73840f (patch) | |
| tree | 2d1297195b663a649562573e6ac62c5dc4c2ee0e /src/layout/IHyprLayout.hpp | |
| parent | b8a7b090927de245ce9271d115b5bff459810a1a (diff) | |
Add bringWindowToTop function to IHyprLayout (#2747)
* Add bringWindowToTop function to IHyprLayout
* Rename `bringWindowToTop` to `requestFocusForWindow`
* Fix doc
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
| -rw-r--r-- | src/layout/IHyprLayout.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp index a6bd1829..eff0d3e6 100644 --- a/src/layout/IHyprLayout.hpp +++ b/src/layout/IHyprLayout.hpp @@ -148,6 +148,13 @@ interface IHyprLayout { */ virtual void replaceWindowDataWith(CWindow* from, CWindow* to) = 0; + /* + Called via the foreign toplevel activation protocol. + Focuses a window, bringing it to the top of its group if applicable. + May be ignored. + */ + virtual void requestFocusForWindow(CWindow*); + private: Vector2D m_vBeginDragXY; Vector2D m_vLastDragXY; |
