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) {
|
||||
NFLog("Setting window display");
|
||||
m_width = config.width, m_height = config.height;
|
||||
bool wasShown = IsWindowVisible(m_handle);
|
||||
show(false);
|
||||
|
||||
// TODO: Only use "active" monitor when starting windowed
|
||||
POINT cursor = {};
|
||||
@ -62,8 +60,6 @@ namespace nf::client {
|
||||
}
|
||||
|
||||
SetWindowPos(m_handle, nullptr, windowX, windowY, windowWidth, windowHeight, SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||
|
||||
show(wasShown);
|
||||
}
|
||||
|
||||
void Window::runLoop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user