Skip to main content
Topic: PrintScreen selecting wrong window (Read 762 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

PrintScreen selecting wrong window

Why does PrintScreen put the wrong window on top?


Re: PrintScreen selecting wrong window

Reply #2
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.

Re: PrintScreen selecting wrong window

Reply #3
Can you run
Code: [Select]
spectacle
from a terminal window and tell us what the output says?

Re: PrintScreen selecting wrong window

Reply #4
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",

Re: PrintScreen selecting wrong window

Reply #5
Are you using multiple monitors per chance? It could be KDE isn't setting the correct monitor as "primary".

Re: PrintScreen selecting wrong window

Reply #6
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.

Re: PrintScreen selecting wrong window

Reply #7
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.

Re: PrintScreen selecting wrong window

Reply #8
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.

Re: PrintScreen selecting wrong window

Reply #9
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.

Re: PrintScreen selecting wrong window

Reply #10
Code: [Select]
import -window root /tmp/screenshot-$(date +%F-%R:%S).png
Still gets me an old state of the screen.

Re: PrintScreen selecting wrong window

Reply #11
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.

Re: PrintScreen selecting wrong window

Reply #12
Yes, I have xf86-video-intel installed.  Will uninstalling a video driver break things?

Re: PrintScreen selecting wrong window

Reply #13
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.

 

Re: PrintScreen selecting wrong window

Reply #14
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
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "