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

Panic on Screen::get_monitors() #1941

Closed
Flone-dnb opened this issue Aug 28, 2021 · 0 comments · Fixed by #1946
Closed

Panic on Screen::get_monitors() #1941

Flone-dnb opened this issue Aug 28, 2021 · 0 comments · Fixed by #1946
Labels
bug does not behave the way it is supposed to shell/gtk concerns the GTK backend

Comments

@Flone-dnb
Copy link

Flone-dnb commented Aug 28, 2021

I recently started learning this GUI toolkit, amazing work! I've wanted to implement centering of the window on startup using the code from this issue: #1800
But I'm getting a panic while using druid::Screen::get_monitors():
GDK has not been initialized. Call gdk::init or gtk::init.

Using git version of Druid.

I'm running Manjaro, I have gtk3 and gtk4 packages installed. What I'm missing?

@maan2003 maan2003 added bug does not behave the way it is supposed to shell/gtk concerns the GTK backend labels Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug does not behave the way it is supposed to shell/gtk concerns the GTK backend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants