Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: remove misleading C++-style default values (#253)
Even if `window_manager_plugin.cc` is compiled as C++, C++-style inline initialization of struct members doesn't work for `_WindowManagerPlugin` because the instance is not created by the C++ operator new but alloc'd and zero-filled by the GObject type system. > GObject explicitly guarantees that all class and instance members > (except the fields pointing to the parents) to be set to zero. https://docs.gtk.org/gobject/concepts.html#object-instantiation Initial values can be set in `window_manager_plugin_init()` if needed. Co-authored-by: LiJianying <lijy91@foxmail.com>
- Loading branch information