Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong area is captured on a Wayland screen scaling #691

@trustin

Description

@trustin

Describe the bug
When I choose a rectangular area on my screen, a wrong area of the screen is captured. The captured area has incorrect X and Y coordinate and incorrect scale. It has correct width and height.

To Reproduce
Steps to reproduce the behavior:

  1. Run ksnip --rectarea
  2. Choose an area.
  3. Press 'Enter' key.
  4. The wrong area is captured.

Expected behavior
The capture area has to match the rectangular area a user selected.

Screenshots
Will post once requested.

Desktop (please complete the following information):

  • Manjaro Linux (Up to date as of 30-Jul-2021)
  • GNOME 40.3.0 with Wayland (XWayland)
  • ksnip 1.9.0, installed from Manjaro official repository via pacman
  • Fractional scaling enabled (250%) on 4K display (only one display)
  • ~/.config/monitors.xml:
     <monitors version="2">
       <configuration>
         <logicalmonitor>
           <x>0</x>
           <y>0</y>
           <scale>2.5</scale>
           <primary>yes</primary>
           <monitor>
             <monitorspec>
               <connector>eDP-1</connector>
               <vendor>SHP</vendor>
               <product>0x14fa</product>
               <serial>0x00000000</serial>
             </monitorspec>
             <mode>
               <width>3840</width>
               <height>2400</height>
               <rate>59.994422912597656</rate>
             </mode>
           </monitor>
         </logicalmonitor>
       </configuration>
     </monitors>
    

Additional context

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions