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

Tdrop window move down a distance of window title on every "hide & show" execution when "-r" flag is used #371

Open
eval-exec opened this issue Nov 25, 2022 · 2 comments

Comments

@eval-exec
Copy link

eval-exec commented Nov 25, 2022

I bind a custom shortcut to emacs by tdrop -r emacs
when I first run tdrop -r emacs, the emacs window appears here:
image
Then I run tdrop -r emacs to hide the emacs window, then run tdrop -r emacs to show the emacs window, it appears in here:
image
repeat last 2 steps, it appears here:
image

It seems that when I hide and show the window by tdrop -r emacs, the window would move down a distance of window title.

some infomations may help to solve this issue

$ uname -a
Linux Mufasa 6.0.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 16 Nov 2022 17:01:17 +0000 x86_64 GNU/Linux

tdrop version: 0.4.0.r26.gc6d1d24-1
OS: Arch Linux x86_64
DE: Plasma 5.26.3
WM: KWin
@eval-exec eval-exec changed the title Tdrop window move down a distance of window title on every drop call when "-r" flag is used Tdrop window move down a distance of window title on every "hide & show" execution when "-r" flag is used Nov 25, 2022
@noctuid
Copy link
Owner

noctuid commented Mar 11, 2023

This sounds like it could have to do with the window decoration or -S. Does adding the -S flag help? If not, you'll have to find the correct value for --decoration-fix.

@ChanceNCounter
Copy link

I'm getting this on Plasma/Breeze with Alacritty. Neither of those flags seemed to make a difference. If I disable the title bar for Alacritty in Plasma settings, things work as intended, so you're right that it's an interaction with the window decoration.

Works as intended no matter what:
tdrop -maA -w 100% -h 48% -s dropdown alacritty

Works as intended, but the top of the window is actually a pixel or two lower than the top edge, with or without decorations:
tdrop -maA -w -0 -h -500 -s dropdown alacritty

Works as reported with decorations, as intended without (this is what I've been trying to use):
tdrop -maAr -s dropdown alacritty

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

No branches or pull requests

3 participants