Restore window control for Gtkmm4 Version

This commit is contained in:
daleclack 2024-02-20 17:44:01 +08:00
parent 090ae2063f
commit aaf760c3fb
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ void MyDock::window_ctrl(Gtk::Window &window, bool on_dock)
the default mode for first launch the default mode for first launch
*/ */
// Use C API because of crash of C++ APIS // Use C API because of crash of C++ APIS
auto state = gdk_toplevel_get_state(GDK_TOPLEVEL(surface)); short state = gdk_toplevel_get_state(GDK_TOPLEVEL(surface));
switch (state) switch (state)
{ {
// case Gdk::Toplevel::State::BELOW: // case Gdk::Toplevel::State::BELOW: