weiameili / Pensela

The Swiss Army Knife of Screen Annotation Tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pensela toolbar getting stuck under drawing board in i3

michaelBelsanti opened this issue · comments

I am using Pensela on i3. After setting it to float and excluding it from my blur effect in Picom, it works great visually. The problem is that when I draw on the drawing board, it focuses it and places it above the Pensela toolbar and I can no longer click on it. It's still usable for me, as I can place the toolbar on my second monitor so that the drawing board can't be above it. It seems as though this could be fixed relatively easily by adding a setting to make Pensela stay on top at all times.
image
It's hard to show this in an image, but during this screenshot my mouse was over the toolbar and I had tried clicking on it (you can't see it because I took the image with flameshot), yet at the top left you can see the drawing board is still the focused window.

Hi. Unfortunately, I tried multiple solutions for this but to no avail. However, it is still possible that this could be solved by changing the i3 config, which I do not know much about. What Pensela currently does is that it opens the Panel WIndow (with all the tools) as a child of the Drawing Board Window (Canvas). Can you configure i3 in a way that it always shows child windows on top of their parent?

That's a good question. I know there is no way to make a specific window always on top in i3, but there may be a way to force the child window to stay on top. Something else I was thinking is that another possible workaround would be adding a way to configure the size of the window to allow the bar to sit above the drawing board. If only I knew anything about JavaScript I'd try to do it myself. I'm going to try compiling it for myself with the window size changed. To see how well that works.

Unfortunately, I've hit somewhat of a dead end with this issue, and could not find any way to fix this behavior from within pensela. As far as I know, this can only be changed either through electron's code or i3 code/configuration., and I'm hence closing this for now. If anyone makes any progress in the future feel free to comment here and I'll reopen this as needed.

This is also a duplicate of #8 and any future discussion regarding this issue is to be redirected there