Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiamaz opened this issue Aug 18, 2022 · 0 comments · May be fixed by #363
Milestone

Comments

@xiamaz
Copy link

xiamaz commented Aug 18, 2022

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.

@xiamaz xiamaz linked a pull request Aug 18, 2022 that will close this issue
@noctuid noctuid added this to the 0.5.1 milestone Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants