Update Window.cpp
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m52s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 1m52s
Get rid of the use of System to turn key repeat back on *It was necessary before because of design shortcomings that seem to have been fixed*
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <ReWindow/types/Window.h>
|
||||
#include <ReWindow/types/Cursors.h>
|
||||
@@ -54,14 +53,16 @@ void RWindow::Lower()
|
||||
}
|
||||
|
||||
void RWindow::DestroyOSWindowHandle() {
|
||||
Logger::Debug(std::format("Destroying window '{}'", this->title));
|
||||
// Turn key repeat back on.
|
||||
XAutoRepeatOn(platform->display);
|
||||
|
||||
Logger::Debug(std::format("Destroying sub-windows for window '{}'", this->title));
|
||||
XDestroySubwindows(platform->display, platform->window);
|
||||
|
||||
Logger::Debug(std::format("Destroyed window '{}'", this->title));
|
||||
XDestroyWindow(platform->display, platform->window);
|
||||
|
||||
system("xset r on"); // Re-set X-server parameter to enable key-repeat.
|
||||
|
||||
open = false;
|
||||
XCloseDisplay(platform->display);
|
||||
}
|
||||
|
||||
//void RWindow::
|
||||
|
Reference in New Issue
Block a user