<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GDK screen size does not count for HiDPI on Wayland"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=760567">760567</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GDK screen size does not count for HiDPI on Wayland
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>gtk+
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: Wayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>iofelben@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>rob@robster.org.uk, wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>GNOME version</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=318940" name="attach_318940" title="test program">attachment 318940</a> <a href="attachment.cgi?id=318940&action=edit" title="test program">[details]</a></span>
test program

GDK gives me 3200x1800 on wayland but 1600x900 on X

In X we divide by the window scale
(<a href="https://github.com/GNOME/gtk/blob/master/gdk/x11/gdkscreen-x11.c#L96">https://github.com/GNOME/gtk/blob/master/gdk/x11/gdkscreen-x11.c#L96</a>)

In wayland we don't
(<a href="https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkscreen-wayland.c#L173">https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkscreen-wayland.c#L173</a>)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>