beefytech / Beef

Beef Programming Language
http://www.beeflang.org
Other
2.51k stars 130 forks source link

The console window is raised over any created windows when debugging #1894

Open 0xSPIRIT opened 1 year ago

0xSPIRIT commented 1 year ago

Version: Release 0.43.4

On Windows, when debugging any C program (win64) that creates a window, the console output window is raised to the top automatically, over my window. I've tested this with using SDL2 and the Win32 API itself to create the window.

It's just a bit annoying to need to alt-tab to my window every time I debug.

Here's some screenshots showing what I mean. image image

LeoDeschaux commented 8 months ago

Maybe a workaround for you could be to call SDL_RaiseWindow in your code https://wiki.libsdl.org/SDL2/SDL_RaiseWindow

I had the same problem. I am using Raylib and calling SetWindowFocused() fixed it for me. SetWindowFocused seems to either call glfwFocusWindow or SDL_RaiseWindow https://github.com/search?q=repo%3Araysan5/raylib%20SetWindowFocused&type=code

0xSPIRIT commented 8 months ago

Yeah that's what I did back when I had this issue :)