Re: building epiphany without X11



On Tue, 2016-03-29 at 10:50 +0000, Ahsan, Noor wrote:
Hello,

I just wanna check that is it possible that we build epiphany purely
on wayland and remove X11 dependency altogether?

Noor

Hi,

Not currently, but only because nobody has bothered to try yet, so
patches welcome. We don't need any configure option for this; instead,
the configure script should simply detect whether GTK+ was built with
X11 support, by using PKG_CHECK_VAR to look at the "target" GTK+ pkg-
config variable. (Checking mine in /usr/lib64/pkgconfig/gtk+-3.0.pc I
see the value of mine is "x11 broadway wayland". If x11 were not listed
there, then we would want to drop the x11 and libwnck pkg-config checks
from the configure script.

Then, you'll need to hunt down X11-specific code, for example this code
in ephy-shell.c:

  if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
    wnck_screen_force_update (wnck_screen_get_default ());

And add preprocessor guards:

#ifdef GDK_WINDOWING_X11
  if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
    wnck_screen_f
orce_update (wnck_screen_get_default ());
#endif

Should be easy, but all of our current distributors still need the X11
support, so it hasn't been a priority for us.

Michael


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