Skip to content

Commit

Permalink
Add back signals required by QPA
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jul 22, 2023
1 parent ae1eaa2 commit 99408bb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions shared/qpa/oxidescreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ void OxideScreen::removeWindow(OxideWindow* window){
window->requestActivateWindow();
}

void OxideScreen::raiseTopWindow(){
auto window = topPlatformWindow();
if(window != nullptr){
window->raise();
}
}

void OxideScreen::lowerTopWindow(){
auto window = topPlatformWindow();
if(window != nullptr){
window->lower();
}
}

void OxideScreen::closeTopWindow(){
auto window = topPlatformWindow();
if(window != nullptr){
window->close();
}
}

bool OxideScreen::event(QEvent* event){
if(event->type() == QEvent::UpdateRequest){
redraw();
Expand Down
5 changes: 5 additions & 0 deletions shared/qpa/oxidescreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ class Q_DECL_EXPORT OxideScreen : public QObject, public QPlatformScreen{
void addWindow(OxideWindow* window);
void removeWindow(OxideWindow* window);

public slots:
void raiseTopWindow();
void lowerTopWindow();
void closeTopWindow();

protected:
bool event(QEvent *event) override;

Expand Down

0 comments on commit 99408bb

Please sign in to comment.