jtheoof / swappy

A Wayland native snapshot editing tool, inspired by Snappy on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drawing Tools only creating Points, not Lines/Shapes

ryanerwin opened this issue · comments

I've recently moved from Gnome to Sway, so I don't have other systems/accounts to test on just yet.

I used Flameshot on X11 and was very excited to find this sceenshot tool for use with Sway...

The swappy build went find with no errors, but when I try to draw I can only get a point, not a line...

Not sure if it's something caused by my Dygma keyboard? Hasn't been an issue with any other app though...

I tried both my Elecom Huge tackball and a regular mouse, but had the same issue on each. I took a short screen capture. You can't see when the button is pressed, but I'm attempting to draw any shape, but the most I can get is a point.

recording.mp4

Note, I tried on the latest swappy release, v1.3.1 and using a copy of the latest git code.
swappy v1.5.1
wlroots v0.12.0
Ubuntu 21.04

swaymsg -t get_inputs
[
  {
    "identifier": "1133:16419:Logitech_Wireless_Keyboard_PID:4023",
    "name": "Logitech Wireless Keyboard PID:4023",
    "vendor": 1133,
    "product": 16419,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "natural_scroll": "disabled"
    }
  },
  {
    "identifier": "1133:16419:Logitech_Wireless_Keyboard_PID:4023",
    "name": "Logitech Wireless Keyboard PID:4023",
    "vendor": 1133,
    "product": 16419,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled",
      "natural_scroll": "disabled"
    }
  },
  {
    "identifier": "1133:16418:Logitech_Wireless_Mouse_PID:4022",
    "name": "Logitech Wireless Mouse PID:4022",
    "vendor": 1133,
    "product": 16418,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "accel_speed": 0.0,
      "accel_profile": "adaptive",
      "natural_scroll": "disabled",
      "left_handed": "disabled",
      "middle_emulation": "disabled",
      "scroll_method": "none",
      "scroll_button": 274
    }
  },
  {
    "identifier": "1133:2142:Logitech_BRIO_Consumer_Control",
    "name": "Logitech BRIO Consumer Control",
    "vendor": 1133,
    "product": 2142,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "1133:2142:Logitech_BRIO",
    "name": "Logitech BRIO",
    "vendor": 1133,
    "product": 2142,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise",
    "name": "Dygma Raise",
    "vendor": 4617,
    "product": 8705,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "natural_scroll": "disabled",
      "left_handed": "disabled",
      "middle_emulation": "disabled",
      "calibration_matrix": [
        1.0,
        0.0,
        0.0,
        0.0,
        1.0,
        0.0
      ]
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise_Mouse",
    "name": "Dygma Raise Mouse",
    "vendor": 4617,
    "product": 8705,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "accel_speed": 0.0,
      "accel_profile": "adaptive",
      "natural_scroll": "disabled",
      "left_handed": "disabled",
      "middle_emulation": "disabled",
      "scroll_method": "none",
      "scroll_button": 274
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise_System_Control",
    "name": "Dygma Raise System Control",
    "vendor": 4617,
    "product": 8705,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise_Keyboard",
    "name": "Dygma Raise Keyboard",
    "vendor": 4617,
    "product": 8705,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise_Consumer_Control",
    "name": "Dygma Raise Consumer Control",
    "vendor": 4617,
    "product": 8705,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "natural_scroll": "disabled"
    }
  },
  {
    "identifier": "4617:8705:Dygma_Raise_Consumer_Control",
    "name": "Dygma Raise Consumer Control",
    "vendor": 4617,
    "product": 8705,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled",
      "natural_scroll": "disabled"
    }
  },
  {
    "identifier": "1390:269:ELECOM_TrackBall_Mouse_HUGE_TrackBall",
    "name": "ELECOM TrackBall Mouse HUGE TrackBall",
    "vendor": 1390,
    "product": 269,
    "type": "pointer",
    "libinput": {
      "send_events": "enabled",
      "accel_speed": 0.0,
      "accel_profile": "adaptive",
      "natural_scroll": "disabled",
      "left_handed": "disabled",
      "middle_emulation": "disabled",
      "scroll_method": "none",
      "scroll_button": 274
    }
  },
  {
    "identifier": "1390:269:ELECOM_TrackBall_Mouse_HUGE_TrackBall",
    "name": "ELECOM TrackBall Mouse HUGE TrackBall",
    "vendor": 1390,
    "product": 269,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled",
      "accel_speed": 0.0,
      "accel_profile": "adaptive",
      "natural_scroll": "disabled",
      "left_handed": "disabled",
      "middle_emulation": "disabled",
      "scroll_method": "none",
      "scroll_button": 274
    }
  },
  {
    "identifier": "1452:4362:Apple,_Inc._USB-C_to_3.5mm_Headphone_Jack_Adapter",
    "name": "Apple, Inc. USB-C to 3.5mm Headphone Jack Adapter",
    "vendor": 1452,
    "product": 4362,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "0:3:Sleep_Button",
    "name": "Sleep Button",
    "vendor": 0,
    "product": 3,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "0:1:Power_Button",
    "name": "Power Button",
    "vendor": 0,
    "product": 1,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  },
  {
    "identifier": "0:1:Power_Button",
    "name": "Power Button",
    "vendor": 0,
    "product": 1,
    "type": "keyboard",
    "xkb_layout_names": [
      "English (US)"
    ],
    "xkb_active_layout_index": 0,
    "xkb_active_layout_name": "English (US)",
    "libinput": {
      "send_events": "enabled"
    }
  }
]

Hi @ryanerwin, this really seems to be an issue on your side. Perhaps you have a device that is messing with the button events of your mouse. Have you tried to do something similar with GIMP?

Closing due to inactivity and no one else reporting the issue.