Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secondary viewports and transparency with NoBackground flag #5218

Closed
juliapaci opened this issue Apr 20, 2022 · 2 comments
Closed

Secondary viewports and transparency with NoBackground flag #5218

juliapaci opened this issue Apr 20, 2022 · 2 comments

Comments

@juliapaci
Copy link

(the numbers are seen in the video for reference)
https://user-images.githubusercontent.com/58243358/164129274-f18be578-a50f-4240-8590-04764da8e943.mp4

  • 1: OBS (recording software) didn't pick it up but the window causes flickering (flashes black) (on the main window, not the whole screen) to occur when dragged out of main window.
  • 2: the window almost completely ignores the ImGuiWindowFlags_NoBackground window flag when dragged out of main window.
  • 3: the ImGuiWindowFlags_NoBackground window flag effects the collapsing header's like it would normally.
  • 4: ImGuiWindowFlags_NoBackground is the only window flag that is effected in this case.

(extra weird stuff)
https://user-images.githubusercontent.com/58243358/164131082-50019822-f444-4abc-baff-8d8bf31c548d.mp4

  • 5: Menu's get moved to the left side of the screen when changing virtual desktops (they keep their y position). If you move virtual desktops to a new one (not the original desktop or the main window), the menu disappears. Also, menus keep menu items only in the virtual desktop you opened them in, else they will disappear.
  • 6: An orphan window (any window that left the main window) will get pushed to the top left portion of the screen when leaving the main windows virtual desktop.
  • 7: moving an orphan window to the bottom or the right border of the screen will result in an offset mouse (depending on how and where you dragged the window), and will position the window back to the middle (not center, it keeps its y position) of the main window. it can also freeze the orphan window.
  • 8:

it can also freeze the orphan window.

(its a bit confusing so just ask questions if you need to)

@juliapaci
Copy link
Author

Im using DWM as a window manager. so its not totally a Dear ImGui issue.

@ocornut ocornut changed the title Window position affects Window Flags Secondary viewports and transparency (was: Window position affects Window Flags) Apr 20, 2022
@ocornut
Copy link
Owner

ocornut commented Apr 20, 2022

Secondary viewports don't properly support transparency by default. See #2766, #4629. (Closing as duplicate)

We would need to add support on a per backend basis, but you can probably wire things on your end.

You didn't fill the issue template, I won't help with the rest. Probably related to #2117.

@ocornut ocornut closed this as completed Apr 20, 2022
@ocornut ocornut changed the title Secondary viewports and transparency (was: Window position affects Window Flags) Secondary viewports and transparency with NoBackground flag May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants