Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61948

HiDPI/X11: Incorrect window mask on drag and drop w/o compisiting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.6.1, 5.6.2, 5.7, 5.8, 5.9
    • GUI: Window management
    • None
    • Linux/X11
    • c5af04cf8aa7bf2fbeaaf2a40f169fe8c17239f1

    Description

      QWindow::setMask() transforms Qt logical coordinates to real screen coordinates, but it provides incorrect region when provided region through a bitmap mask is already in physical coordinates (e.g. HiDPI pixmap).

      Steps to reproduce:

      • run application from QTBUG-61948-DndMask.zip,
      • X11 compositor must be disabled,
      • start dragging.

      Attached files:

      • dragged pixmap from the example software (before-fix.png)
      • dragged pixmap from the example software after bugfix (after-fix.png)
      • source code (QTBUG-61948-DndMask.zip)

      Attachments

        1. after-fix.png
          after-fix.png
          18 kB
        2. before-fix.png
          before-fix.png
          17 kB
        3. QTBUG-61948-DndMask.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            zaps166 Błażej Szczygieł
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes