Comments (8)
I’m on the slopes right now .
from hello_imgui.
Hum, the initial sequence on Windows is a bit hard.
What you are seeing is:
Docking layout:
- docking layout is applied on the second frame: if I remember well, ImGui requires that all windows must have been displayed once in order to be able to assign them to splits.
Window sizing:
- On windows, windows sizing on multiple screen with different dpis is also cumbersome. If you do not specify the screen there is no easy way to know what is the scaling of the screen on which the window will appear before opening it.
Are you using multiple displays with different scalings?
Anyhow; I know it would be interesting to study this. Perhaps by hiding the window on the first frames.
I'll study that a bit later.
from hello_imgui.
I am on high DPI monitor (dell XPS 15 laptop). I just unplugged the extra display I was using (which is not high DPI) and I can confirm the behavior I described also happens when I use a single (laptop) screen. I am more than happy to help/test/validate any changes you have in mind.
from hello_imgui.
Hi,
This should be solved with d6af807
from hello_imgui.
The glitch is gone, that looks much nicer now. Thanks Thom for the quick turnaround (and I hope you get to do other fun stuff besides coding during your week of vacation)!
from hello_imgui.
I was doing some more testing of that change and noticed an undesirable side effect : the hello_imgui
app window now forces its way to the forefront all the time (e.g. I alt-tab to some other app and the hello_imgui
app jumps back again to the front).
I think it's down to calling showWindow()
for every frame index >= 3.
I tried this locally:
if (mIdxFrame >= 3)
if (mIdxFrame == 3)
in src/hello_imgui/internal/backend_impls/abstract_runner.cpp
, around line 484
and that fixes that behavior. Any reason not to use an equality there?
from hello_imgui.
from hello_imgui.
Ok - I sent my simple change as a PR if that makes it easier for you: #47
from hello_imgui.
Related Issues (20)
- 👋👋,CMake can't find the source files: HOT 2
- Cannot load a font during frame rendering HOT 2
- Pre-exit behavior HOT 1
- An api which can help us get assets folder path HOT 2
- IDBFS Support HOT 1
- Imgui Ini Settings Parts HOT 2
- requrest:How to know which dockspace is currently active HOT 2
- not working on linux ubuntu HOT 1
- Some question about hello_imgui_ini_settings HOT 1
- How to set the no_docking and no_tab_bar for the MainDockSpace ? HOT 3
- Bisect MoveWindowToMonitor HOT 1
- Custom drawing behind GUI not possible due to Impl_Frame_3D_ClearColor() HOT 2
- macOS bundle support HOT 2
- Can I change a borderless window size? HOT 3
- Metal backend + emscripten favicon and shell template HOT 22
- Ability to put user menu items between the App Menu and the View Menu HOT 1
- Sdl Dpi awareness on Windows / multiple monitors HOT 1
- New back-end default HOT 3
- adding generated files to assets directory? HOT 8
- freetype dependency in Windows HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello_imgui.