Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: Eugine_Nier on 06 August 2022, 00:10:46

Title: PrintScreen selecting wrong window
Post by: Eugine_Nier on 06 August 2022, 00:10:46
Why does PrintScreen put the wrong window on top?
Title: Re: PrintScreen selecting wrong window
Post by: nous on 06 August 2022, 13:46:17
You're not even telling which DE/WM you're using.
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 10 August 2022, 03:23:17
Sorry.  I'm using plasma 5.25.4-1 on linux 5.18.16.artix1-1.   The program bound to PrtSc is spectacle 22.04.3-1.
Title: Re: PrintScreen selecting wrong window
Post by: Krellnus on 10 August 2022, 04:11:48
Can you run
Code: [Select]
spectacle
from a terminal window and tell us what the output says?
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 10 August 2022, 06:24:22
Quote
from a terminal window and tell us what the output says?
Code: [Select]
$ spectacle

(spectacle:1076): Gtk-WARNING **: 00:22:57.935: Unable to locate theme engine in module_path: "adwaita",

(spectacle:1076): Gtk-WARNING **: 00:22:57.935: Unable to locate theme engine in module_path: "adwaita",
Title: Re: PrintScreen selecting wrong window
Post by: Krellnus on 10 August 2022, 06:32:08
Are you using multiple monitors per chance? It could be KDE isn't setting the correct monitor as "primary".
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 10 August 2022, 06:39:15
No, I'm on a laptop with a single monitor.

Another data point: sometimes spectacle puts a window that was closed several minute ago on top.
Title: Re: PrintScreen selecting wrong window
Post by: nous on 10 August 2022, 11:15:48
It's clearly either a misconfiguration or a bug in spectacle; test with "import -frame /tmp/window.png", click on the window you want and see the capture in /tmp.
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 10 August 2022, 16:59:00
Code: [Select]
import -frame /tmp/window.png

works.  Then again spectacle works when selecting a window.  It's when its in "Full Screen" mode that it takes the state of the screen minutes (or even hours) ago.
Title: Re: PrintScreen selecting wrong window
Post by: nous on 10 August 2022, 21:20:16
It's when its in "Full Screen" mode that it takes the state of the screen minutes (or even hours) ago.
Well, for full-screen capture assign "import -window root /tmp/screenshot-$(date +%F-%R:%S).png" to PrtScr and profit. Use the previous 'import' command with, say, Shift-PrtScr for single-window captures.
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 15 August 2022, 18:20:25
Code: [Select]
import -window root /tmp/screenshot-$(date +%F-%R:%S).png
Still gets me an old state of the screen.
Title: Re: PrintScreen selecting wrong window
Post by: capezotte on 15 August 2022, 23:15:31
Do you happen to have xf86-video-intel installed? I used to have a similar problem when recording my screen that was fixed by uninstalling it.
Title: Re: PrintScreen selecting wrong window
Post by: Eugine_Nier on 16 August 2022, 16:48:53
Yes, I have xf86-video-intel installed.  Will uninstalling a video driver break things?
Title: Re: PrintScreen selecting wrong window
Post by: capezotte on 17 August 2022, 03:08:39
If you have the fallback (xf86-video-modesetting), no. And even if it breaks things, you can use the TTY and reinstall it using pacman.
Title: Re: PrintScreen selecting wrong window
Post by: lq on 17 August 2022, 09:15:12
Still gets me an old state of the screen.
How old? Can you possibly see the ancient Egyptians building the pyramids in your screenshots?

Before you start a de/installation orgy, I recommend you read the Wiki.
https://wiki.archlinux.org/title/Screen_capture