Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.

Home Page:https://nheko-reborn.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

right click spawns menu off screen to the left, specifically on i3wm with 2 monitors enabled

darkralts opened this issue · comments

commented

Describe the bug

when i set the scale factor to 1.25 or higher, the right click menu seems to not appear, but after messing around i found out it does render just way to the left.

To Reproduce

  1. Go to settings
  2. set the scale factor to anything above 1.0
  3. exit the settings and right click any server or chat, message etc.
  4. the menu does not show up where it is suppose to

What happened?

so when the scale factor is set higher than 1, it seems to render in an unexpected place, due to multiple monitor setup, if i disable my other monitor, it shows up correctly

it seems to be seeing my entire monitors as one whole monitor, and placing the right click menu where it thinks it would be if it was 1 monitor, and its getting confused and placing it in the wrong place, that is what i think is happening. but if thats the case, why would it work fine on scale 1.0? thats why i think it is a bug aswell.

if i disable my 2nd monitor, it places it correctly regardless of scale.

Expected behavior

i expect the menu to open in the proper location(close or right next to the cursor) regardless of scale option set, regardless of monitor setup.

i thought it might be QT, but all other qt apps have the right click menu in the proper place

this issue does NOT happen on xfce(and maybe other DE i have not tested or have installed), but i get weird crashes on xfce when right clicking(weird but probably for a separate issue later if it persists)

i do not know if it is DE specific, as this behaviour has never happened in any other app for me before, and only happens with scaling. it is why i am reporting as i am at a loss of why this is happening.

Screenshots

image
that is scale 1.0

image
this is scale 1.5

Version

0.12.0

Operating system

Linux 6.6.35_1

Installation method

AppImage

Qt version

No response

C++ compiler

No response

Desktop Environment

i3 window manager

Did you use profiles?

  • Profiles used?

Relevant log output

there are no log errors i think, its a visual thing?

thank you!