GaZaTu / x11-emoji-picker

Linux XServer emoji picker
MIT License
203 stars 7 forks source link

openAtMouseLocation is not respected on xfce4/xfwm4 #45

Closed schrmh closed 1 year ago

schrmh commented 1 year ago

I have two monitors connected and it looks like the emoji-picker window always opens in the middle of the screen with the window I want to input emojis to instead of the actual mouse position.

schrmh commented 1 year ago

As already commented in #46: this doesn't play well with QT_SCALE_FACTOR. Also it would be nice to have some option to prevent that the picker is partly outside the screen: image

GaZaTu commented 1 year ago

you're right, i'll look into this later

GaZaTu commented 1 year ago

Also it would be nice to have some option to prevent that the picker is partly outside the screen:

This should already be working or is there some specific scenario where it doesn't?

schrmh commented 1 year ago

Thanks, with #47 the window is exactly at the position of the mouse pointer, no matter the scale factor.

This should already be working or is there some specific scenario where it doesn't?

Well, for me it is always partly outside the screen when the distance between mouse pointer and screen edge is smaller than the size of the emoji-picker window. image

It would be good if it would still open at the mouse pointer but not below it but above it in that case (or when on the right edge to the left of it). Configurable offset might also be nice.

GaZaTu commented 1 year ago

@schrmh you can take a look at #48 it should fix the positioning issue

Edit: since you seem to be using kaomoji i decided to improve the usability there aswell in #49

schrmh commented 1 year ago

Thanks, looks like it is working.