<html>
    <head>
      <base href="https://bugs.freedesktop.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 - Cannot move mouse pointer over the top 1080px along the Y axis when display is rotated vertically"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92076">92076</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot move mouse pointer over the top 1080px along the Y axis when display is rotated vertically
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>critical
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>XWayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

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

        <tr>
          <th>QA Contact</th>
          <td>xorg-team@lists.x.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=118399" name="attach_118399" title="weston-launcher's log">attachment 118399</a> <a href="attachment.cgi?id=118399&action=edit" title="weston-launcher's log">[details]</a></span>
weston-launcher's log

Display: Dell U2311H, 1920x1080@60.
Distro: Arch Linux i686
Linux 4.1.6-ck
Wayland 1.9.0
Weston 1.9.0
xorg-server 1.17.2-4
xorg-server-xwayland 1.17.2-4
libinput 1.0.1
xf86-input-libinput 0.14.0-3
Simple USB mouse A4Tech X7 F5
Mesa 11 (git, a1ac742)

I rotated my display vertically, so now my resolution is 1080x1920. (I use my
display vertically almost always because it is very comfortable to read/write
text/code when I can see a lot and scroll rarely).

When I open any X11 app (in Weston):
1. I can move successfully mouse pointer along the axis X (all of the 1080
pixels).
2. I can move successfully mouse pointer along the axis Y within only the top
1080 pixels (relative to the screen, not the window).
3. If I move mouse pointer below the top 1080px, the app (!) still thinks that
Y=1080, though I (!) see that mouse pointer's Y is actually > 1080.
4. If I move the window to the bottom of the screen, then I can't click/scroll
anything (Y relative to screen is > 1080) in it. I can't even move the window
by clicking its title bar using the left mouse button. Though I can move the
window by using Weston's Super+LMB.
Both xf86-video-ati and modesetting produce the same result.

I *think* there is something in the XWayland's code like:
max_cursor_y = maxResolutionHeight;
return min(cursor_y, max_cursor_y);
which should be changed to
max_cursor_y = (rotate_degree == 90 || rotate_degree == 270)
               ? max_resolution_width : max_resolution_height;
return min(cursor_y, max_cursor_y);

There is no such bug with mouse in X11 (I use it with libinput too).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>