The goal and scope of the GTK backend in druid-shell #860
Labels
architecture
changes the architecture, usually breaking
discussion
needs feedback and ideas
shell/gtk
concerns the GTK backend
What exactly is the goal of the GTK backend in druid-shell?
Is it a temporary solution or a more permanent one?
The problem with GTK is that it's not consistent. It has platform specific behavior. For example for mouse events the ModifierType docs state the GDK X backend interprets button press events for button 4-7 as scroll events, so
gdk_button4_mask
andgdk_button5_mask
will never be set. There are also similar issues with keyboard events.This means that it's not possible to just target one GTK. The GTK druid-shell layer has to basically have an internal gtk-shell abstraction which deals with delivering a consistent GTK API across the different platforms that GTK might run on.
The text was updated successfully, but these errors were encountered: