noctuid / tdrop

A Glorified WM-Independent Dropdown Creator
BSD 2-Clause "Simplified" License
1.1k stars 43 forks source link

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

Open eval-exec opened 1 year ago

eval-exec commented 1 year ago

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
noctuid commented 1 year ago

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 commented 4 months ago

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