Window setDisplay no longer hides window
This commit is contained in:
parent
c5e1a66e36
commit
160ca7070f
@ -30,8 +30,6 @@ namespace nf::client {
|
|||||||
void Window::setDisplay(DisplayConfig config) {
|
void Window::setDisplay(DisplayConfig config) {
|
||||||
NFLog("Setting window display");
|
NFLog("Setting window display");
|
||||||
m_width = config.width, m_height = config.height;
|
m_width = config.width, m_height = config.height;
|
||||||
bool wasShown = IsWindowVisible(m_handle);
|
|
||||||
show(false);
|
|
||||||
|
|
||||||
// TODO: Only use "active" monitor when starting windowed
|
// TODO: Only use "active" monitor when starting windowed
|
||||||
POINT cursor = {};
|
POINT cursor = {};
|
||||||
@ -62,8 +60,6 @@ namespace nf::client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SetWindowPos(m_handle, nullptr, windowX, windowY, windowWidth, windowHeight, SWP_NOZORDER | SWP_FRAMECHANGED);
|
SetWindowPos(m_handle, nullptr, windowX, windowY, windowWidth, windowHeight, SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||||
|
|
||||||
show(wasShown);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::runLoop() {
|
void Window::runLoop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user