Changeset 217838 in webkit


Ignore:
Timestamp:
Jun 6, 2017 10:13:00 AM (7 years ago)
Author:
Adrian Perez de Castro
Message:

[GTK][Wayland] Do not pass value of $DISPLAY to wl_display_connect()
https://bugs.webkit.org/show_bug.cgi?id=172993

Reviewed by Žan Doberšek.

No new tests needed.

  • platform/graphics/wayland/PlatformDisplayWayland.cpp:

(WebCore::PlatformDisplayWayland::create): Instead of using the "DISPLAY" environment variable (meant for X11),
pass a null pointer to "wl_display_connect()". This function checks the value of the "WAYLAND_DISPLAY" environment
variable itself and therefore we do not need to pass it ourselves.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r217836 r217838  
     12017-06-06  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [GTK][Wayland] Do not pass value of $DISPLAY to wl_display_connect()
     4        https://bugs.webkit.org/show_bug.cgi?id=172993
     5
     6        Reviewed by Žan Doberšek.
     7
     8        No new tests needed.
     9
     10        * platform/graphics/wayland/PlatformDisplayWayland.cpp:
     11        (WebCore::PlatformDisplayWayland::create): Instead of using the "DISPLAY" environment variable (meant for X11),
     12        pass a null pointer to "wl_display_connect()". This function checks the value of the "WAYLAND_DISPLAY" environment
     13        variable itself and therefore we do not need to pass it ourselves.
     14
    1152017-06-06  Antoine Quint  <graouts@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp

    r209064 r217838  
    5353std::unique_ptr<PlatformDisplay> PlatformDisplayWayland::create()
    5454{
    55     struct wl_display* display = wl_display_connect(getenv("DISPLAY"));
     55    struct wl_display* display = wl_display_connect(nullptr);
    5656    if (!display)
    5757        return nullptr;
Note: See TracChangeset for help on using the changeset viewer.