Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Fails when application has control over cursor #1

@Brottweiler

Description

@Brottweiler

This script works fine, except when the cursor is occupied by another application or similar.
Basically, when I have a game like Minecraft open, Minecraft is using the cursor. When I run this script from a hotkey, scrot(?) cannot get a hold of the cursor so it fails. The cursor has to be free, as if I were to pause the game.

Opening a terminal first makes minecraft loose focus and I get my cursor, which works, but I'd rather have it bind to a key.

Is there a way for the script to make what is having the mouse occupied to free the cursor? Or is there some other way I can fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions