Re: Detecting the gdk backend



Hi:

You have the GDK_IS_WAYLAND_DISPLAY() C macro. You have an example in my program Terminus ( https://gitlab.com/rastersoft/terminus ), in the 'checkwayland.c' and 'checkwayland.vapi' files (which is also an example of how to do it in Vala, BTW).

El 8/2/19 a las 6:28, Daniel Kasak via gtk-app-devel-list escribió:
Hi all. Is there a way to detect the gdk backend an app is using? I know
about the environment variable - GDK_BACKEND. But often this is not set,
and gtk just picks whatever's available. I need ever-so-slightly different
app behaviour, depending on the backend. Any ideas?

Dan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

--
Nos leemos
                         RASTER    (Linux user #228804)
raster rastersoft com              http://www.rastersoft.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]