qtfm icon indicating copy to clipboard operation
qtfm copied to clipboard

Context menu not working when qtfm window is moved to an other monitor

Open imrn opened this issue 5 years ago • 16 comments

On a multi-head/display/monitor system

  1. Start qtfm
  2. Drag it to an other display
  3. See right click context menu is not working. (For all items)
  4. Drag qtfm window back to the original/main display
  5. See context menu working as expected

imrn avatar Mar 03 '19 11:03 imrn

not able to replicate.

rodlie avatar Mar 03 '19 15:03 rodlie

6.1.7 or master?

rodlie avatar Mar 03 '19 16:03 rodlie

6.1.7

imrn avatar Mar 03 '19 16:03 imrn

and Qt version?

I connected an external monitor to my laptop, did a xrandr --output X --left-of Y moved qtfm between monitors and the context menu works on both monitors here.

rodlie avatar Mar 03 '19 16:03 rodlie

Qt 5.11.3. Some more info/experimentation: Probably it is a qt/x11 thing.

Displays: LVDS1 1024x600. Asus Eeepc VGA1 1280x1024. External monitor

Layouts: (1) Works as expected LVDS1 VGA1

(2) Works as expected VGA1 LVDS1

(3) Context menu is not displayed (My usual setup) VGA1 LVDS1 (Bottom edges aligned using arandr)

(4) Context menu is displayed but pops up far away from the click. (Approx 300-400 px left of the right click.) LVDS1 VGA1 (Bottom edges aligned using arandr)

imrn avatar Mar 03 '19 16:03 imrn

Thanks for the info, I will do some more testing.

Btw, I only support Qt 5.6.x/5.9.7/5.12.x.

rodlie avatar Mar 03 '19 16:03 rodlie

I just tested 5.11.3 and still not able to replicate.

  • Distro?
  • X.org?
  • DE/WM?
  • graphics driver?

rodlie avatar Mar 03 '19 17:03 rodlie

Qt 5.11.3 is currently the available version on VoidLinux. But void is a swift rolling distribution. Probably It wont take too long to switch to new qt version.

imrn avatar Mar 03 '19 17:03 imrn

No desktop. Only tint2 and openbox. x11 intel i915.

imrn avatar Mar 03 '19 17:03 imrn

pcmanfm-qt works as expected with identical configuration.

imrn avatar Mar 04 '19 07:03 imrn

Tested 6.1.7 on a identical machine (netbook atom) on Ubuntu and Slackware, works here.

rodlie avatar Mar 04 '19 08:03 rodlie

So...

I installed voidlinux on idepad s10e, more or less identical hardware to what you have. I installed xorg, openbox, qtfm, xterm and adwaita-icon-theme. Added openbox to xinitrc and ran startx. Then started xterm, connected an external monitor on VGA, ran xrandr --auto, then xrandr --output VGA1 --right-of LVDS1, then started qtfm. context menu works as it should on both screens.

rodlie avatar Mar 05 '19 16:03 rodlie

Well, I'm impressed with your determination. I hope you've enjoyed Void. ;)

I'm using arandr to set the layout. In fact, xrandr --output VGA1 --left-of LVDS1 is the right command to have layout (3) above. Anyway.. After issuing

xrandr --auto xrandr --output VGA1 --left-of LVDS1

commands, my 1280x1024 monitor somehow switched on as 800x600 and qtfm now behaves as case (4). For 1280x1024, it behaves as (3) as usual.

I think the problem may (or may not) surface differently for certain combinations of resolution and layout.

imrn avatar Mar 05 '19 18:03 imrn

Strange ... The only difference is that I used a 1920x1080 monitor, I could of course change to another monitor (I have a native 1280x1024 monitor somewhere).

rodlie avatar Mar 05 '19 18:03 rodlie

You may set resolution and layout using arandr. Can you give it a try before changing your monitor?

I guess you can set them to 1024x600 and 1280x1024 even if these are not the native resolution of your display.

imrn avatar Mar 05 '19 18:03 imrn

Will do some more testing a bit later today.

rodlie avatar Mar 05 '19 18:03 rodlie