feat: add evt listeners for SetAlwaysOnTop (#14951)
* feat: add evt listeners for SetAlwaysOnTop * only emit one event on AlwaysOnTop change * docs: add new alwaysontop event * dont emit if theres no change * address feedback from review
This commit is contained in:
parent
d810f08b75
commit
27bbf6a3c6
7 changed files with 24 additions and 0 deletions
|
@ -706,6 +706,9 @@ void NativeWindowViews::SetAlwaysOnTop(bool top,
|
|||
const std::string& level,
|
||||
int relativeLevel,
|
||||
std::string* error) {
|
||||
if (top != widget()->IsAlwaysOnTop())
|
||||
NativeWindow::NotifyWindowAlwaysOnTopChanged();
|
||||
|
||||
widget()->SetAlwaysOnTop(top);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue