mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor(Bar): avoid reinterpret_cast
This commit is contained in:
parent
aeaa1927d9
commit
9564adb5b4
@ -28,9 +28,10 @@ waybar::Bar::Bar(const Client& client,
|
||||
setupConfig();
|
||||
setupCss();
|
||||
|
||||
auto wrap = reinterpret_cast<GtkWidget*>(window.gobj());
|
||||
gtk_widget_realize(wrap);
|
||||
GdkWindow *gdk_window = gtk_widget_get_window(wrap);
|
||||
auto gtk_window = window.gobj();
|
||||
auto gtk_widget = GTK_WIDGET(gtk_window);
|
||||
gtk_widget_realize(gtk_widget);
|
||||
auto gdk_window = window.get_window()->gobj();
|
||||
gdk_wayland_window_set_use_custom_surface(gdk_window);
|
||||
surface = gdk_wayland_window_get_wl_surface(gdk_window);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user