Add bringWindowToTop function to IHyprLayout (#2747)

* Add bringWindowToTop function to IHyprLayout

* Rename `bringWindowToTop` to `requestFocusForWindow`

* Fix doc
This commit is contained in:
outfoxxed
2023-07-19 03:39:45 -07:00
committed by GitHub
parent b8a7b09092
commit 5cd5631fb2
3 changed files with 17 additions and 10 deletions

View File

@@ -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;