mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 19:59:59 +01:00
BugFix interference output window rescale on Workspace UI windows
This commit is contained in:
@@ -134,9 +134,11 @@ static void WindowRefreshCallback( GLFWwindow * )
|
|||||||
|
|
||||||
static void WindowResizeCallback( GLFWwindow *w, int width, int height)
|
static void WindowResizeCallback( GLFWwindow *w, int width, int height)
|
||||||
{
|
{
|
||||||
// UI manager tries to keep windows in the workspace
|
if (Rendering::manager().mainWindow().window() == w) {
|
||||||
WorkspaceWindow::notifyWorkspaceSizeChanged(GLFW_window_[w]->previous_size.x, GLFW_window_[w]->previous_size.y, width, height);
|
// UI manager tries to keep windows in the workspace
|
||||||
GLFW_window_[w]->previous_size = glm::vec2(width, height);
|
WorkspaceWindow::notifyWorkspaceSizeChanged(GLFW_window_[w]->previous_size.x, GLFW_window_[w]->previous_size.y, width, height);
|
||||||
|
GLFW_window_[w]->previous_size = glm::vec2(width, height);
|
||||||
|
}
|
||||||
|
|
||||||
int id = GLFW_window_[w]->index();
|
int id = GLFW_window_[w]->index();
|
||||||
if (!Settings::application.windows[id].fullscreen) {
|
if (!Settings::application.windows[id].fullscreen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user