bk138 / gromit-mpx

Gromit-MPX is an on-screen annotation tool that works with any Unix desktop environment under X11 as well as Wayland.
GNU General Public License v2.0
989 stars 83 forks source link

[Feature Request]: gromit-mpx limited to a single workspace #75

Open zenny opened 4 years ago

zenny commented 4 years ago

Hi,

@bk138 Thanks for creating something that is extremely useful. No parallels! :D

Once gromit-mpx process starts, all workspaces (pagers) are affected at present.

Is there a way to limit gromit-mpx to a specific workspace (pager) where it was activated?

Yep, I know that one can toggle with CTRL+F9, yet that would add an additional step when working with multiple workspaces like in i3, particularly troublesome while screen-capturing.

Any takers?

Cheers, /z

bk138 commented 4 years ago

This might actually be an easy one.

zenny commented 4 years ago

This might actually be an easy one.

look forward to. ;-)

bk138 commented 4 years ago

https://github.com/bk138/gromit-mpx/blob/master/src/gromit-mpx.c#L1241 sets the window type to popup, which makes it stick to all virtual desktops. Changing this to GTK_WINDOW_TOPLEVEL as per https://developer.gnome.org/gtk3/unstable/GtkWindow.html#gtk-window-new lets the window stay on one virtual desktop, but it can be underneath other windows then :-/

bk138 commented 4 years ago

Ideally, annotations would be managed by the compositor anyway, but this would be a wholly different application then.

zenny commented 4 years ago

@bk138 My use case is to screencapture including the annotation while being able to move around without annotations other workspaces (pagers) in i3wm, fyi. I guess the compositor (currently using picom) managed annotations are not recorded in screencapture in my case, or did I miss something?

antocham commented 3 years ago

Hi, I didn't find anything about this (but maybe it is my fault, I didn't find much about gromit-mpx in general and I'm not sure I caught all the subtleties of the config file), but in the same spirit it would be great to enable gromit on one screen only (currently a XP-Pen tablet) and leave the other screen work with its mouse and possible touchscreen unchanged. Or alternatively (but I think this is possible through a complicated configuration of libinput?) having the pen (or the finger on a touchscreen) work as a pen and the mouse as a mouse... Sorry if this is already easy / or too hard to implement... (btw, it seems F9 does not work on a Dell latitude, so keeping the mouse as a selection tool would be a great workaround) . Thanks for the nice software.