flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
23.92k stars 1.52k forks source link

Add WM_ROLE to windows generated by flameshot #3635

Open yggdr opened 2 weeks ago

yggdr commented 2 weeks ago

Feature Description

Currently I cannot easily control which of the windows flameshot opens (like configuration, or the "Pin to desktop"-window) should be set to floating in my i3 configuration. With firefox e.g. I able to filter for window_role="PictureInPicture" to have the video player popup automatically in floating mode. In flameshot, I can only really filter for the entire class='flameshot'. Adding WM_ROLE to the various windows opened would make this selection more granular.

mmahmoudian commented 1 week ago

I agree that this can be further improved, but at the moment, at least for the windows I tested, it is possible to have granular window rules by using combination of "window class" and "window title":

bitmap