-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Terminals with opacity causes tiny, not fitting recordings #26
Comments
Could you please also run |
Only the terminal open, this is what I get:
Outputxwininfo: Window id: 581 (the root window) (has no name)Root window id: 581 (the root window) (has no name) |
Thanks, could you just for curiosity try to run t-rec this way: # running t-rec with specify the most parent alacrity terminal window id
WINDOWID=27262978 t-rec |
Nein, that does not work, either :(. |
😭 - ok was a try. I'm trying to reproduce it and come up with a fix soon. |
It might be important that the output of t-rec -l does not list any of the windows named with Alacritty (or any other named window). For instance, with three terminals open:
Outputxwininfo: Window id: 581 (the root window) (has no name) Root window id: 581 (the root window) (has no name)
Output:
|
Good to know, that sounds a bit like a different issue (and the missing window names I can already reproduce). |
The more I read about xmonad and it's configurability the more I wonder if you could share your xmonad config file if you have any? Like https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Config-Prime.html |
Sure, I don't have it public on Github but here it is https://pastebin.com/3fGqJ5QM . It is a bit messy, I rely on autostart scripts for tray, compositor, etc. and I use it with polybar so I have to hack around with xmonad-log to do what I want. I'd rater look at this one, which is better documented and shows the configurability part much better than mine. |
As I'm not familiar with xmonad at all, I can only guess right now, but maybe the import XMonad.Layout.ResizableTile has something to do with this behaviour. I was not yet able to reproduce it, but found a different interesting behaviour on xmonad #30 that needed config adjustments in xmonads default config file. (only partially related) |
But I tried it on another (more obscure but rusty) tiling window manager - leftwm - an the behavior is the same. I could not mess with anything there because it is not as configurable as xmonad. I would be happy with a xmonad-specific solution that I change it in the config and it works but it would be nice if others could verify this in other tiling WMs, since maybe xmonad is too niche (well, tiling is maybe too niche in the first place, but that's up to you hehe). |
Alright I will check this WM out as well. Meanwhile (since on Linux Mint and xmonad it is working) I wonder if you could also supply the output of |
There you go
Output: System:
Host: barry Kernel: 5.9.14-arch1-1 x86_64 bits: 64
compiler: gcc v: 10.2.0 Desktop: N/A wm: LG3D dm: LightDM
Distro: ArcoLinux
Graphics:
Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915
v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile]
vendor: Lenovo driver: nvidia v: 455.45.01 bus ID: 01:00.0
chip ID: 10de:1c8d
Device-3: Syntek EasyCamera type: USB driver: uvcvideo
bus ID: 1-8:3 chip ID: 174f:241a
Display: x11 server: X.Org 1.20.10 compositor: picom
driver: modesetting,nvidia resolution: 1920x1080~60Hz
s-dpi: 96
OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2
v: 4.6.0 NVIDIA 455.45.01 direct render: Yes I still need to try what you proposed in the other issue. |
Good news, was able to reproduce it and have also an explanation why this is happening. So the bugfix is not too far away. I have reproduced the issue on ArcoLinux on this WM setup:
However, the issue is not so much related to the WM, but more precisely related to the fact that the terminal used, has transparency support, so the screenshot that gets captured has transparency too. Why is transparency a problem you might ask, glad you've asked. On Ubuntu there was a transparent glow around the borders of the window, caused by a compositor effect (like a drop shadow effect) in order to get rid of this, there is a smart feature that shrinks the image to a size where the dimensions don't have transparency. |
- make sure that terminals with opacity are turned into no transparency - make sure that the ubuntu case with transparent blury shadow around is still works - remove the `-trim` option of convert on the effect application that missbehaves even for same colored regions
@carrascomj could you please double-check the branch fix/xmonad-issue-26 and see if that also solved the problem in your case? I tested multiple terminal on multiple distros all with some and none opacity and all cases behave now good. |
- make sure that terminals with opacity are turned into no transparency - make sure that the ubuntu case with transparent blury shadow around is still works - remove the `-trim` option of convert on the effect application that missbehaves even for same colored regions
@sassman It works! So the problem was something with having a composer, right? (I mean, my terminal is not transparent but I have picom running in the background). |
Not sure if that was the root cause. But the However, the PR needs a bit more fine-tuning to solve some causes that misbehaves on MacOS then it would be ready. So you can expect a release pretty soon. |
- make sure that terminals with opacity are turned into no transparency - make sure that the ubuntu case with transparent blury shadow around is still works - remove the `-trim` option of convert on the effect application that missbehaves even for same colored regions
@carrascomj happy to announce that the final bugfix is out (v0.4.2 it is). Thanks again for your amazing and responsive help, without folks like you such quick fixes would not be possible. |
Awesome, thank you for this software! |
Describe the bug
The output produced with t-rec is a very small portion of the window on xmonad.
Using
t-rec -l
gives me a 10x10 for each window open in the workspace.To Reproduce
Steps to reproduce the behavior:
t-rec
Expected behavior
The whole window, with borders.
Screenshots
Desktop (please complete the following information):
Additional context
Another tiling window manager (leftwm) and another terminal (xcfe4-terminal) produced the same behavior.
System details
OS: ArcoLinux
Kernel: 5.9.14-arch1-1
DE: xmonad
Terminal: alacritty
CPU: Intel i7-8750H (12) @ 2.200GHz
GPU: NVIDIA GeForce GTX 1050 Mobile
Xserver: 1.20.10-3
The text was updated successfully, but these errors were encountered: