Skip to content

Automatic detection of current monitor does not work if the window origin coordinates is outside the active screen #362

Description

@xiamaz

I am trying to use tdrop on KDE Plasma and into an issue, where tdrop would not create a dropdown if certain windows are focused.

After some debugging I realized that the core issue was that if the window origin as shown in xwininfo is outside the screen area.

Steps to reproduce:

  1. Focus a windows, where the top left corner of the window is outside the screen area. E.g. xwininfo will show the following for a normal single monitor setup:
  Absolute upper-left X:  1241
  Absolute upper-left Y:  -1
  Relative upper-left X:  0
  Relative upper-left Y:  0
  1. Trigger tdrop, ensure that neither bspwm, i3 or herbstluftwm are used, so that detection by active window will be used. Also monitor config or cursor config cannot be set.

In this case tdrop will be unable to find the active monitor causing an uninformative error.

This issue affects mainly stacking window managers, where any window might be off the screen area. Additionally certain applications, such as chrome might be affected, as their decoration might be off-monitor, when they are maximized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions