Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong display size on Linux with multiple screen #82

Open
rgiot opened this issue Oct 6, 2018 · 2 comments
Open

Wrong display size on Linux with multiple screen #82

rgiot opened this issue Oct 6, 2018 · 2 comments

Comments

@rgiot
Copy link
Contributor

rgiot commented Oct 6, 2018

When using Bonzomatic from a laptop using a 4K display I have notice various issues :

  • laptop without monitor : Bonzomatic takes 1/4 of the screen (lower left quadrant)

  • lapopt with a plugged (not 4k) monitor

    • Bonzomatic started from the laptop screen : Bonzomatic uses the external monitor and seems to be properly displayed. Hower moving the mouse to the extra right part of the screen makes it scroll until seing only the right part of bonzomatric screen; moving the mouse to the left of the screen do fix the issue
    • Bonzomatic started from the external monitor : top part of Bonzomatic is hidden (the 20th first lines of text)

The configuration is:

  • ubuntu 18.04
  • GNOME Shell 3.28.3
  • Quadro M2200

No idea of which additional information could help to solve this issue. But I can provide more if needed

@Gargaj
Copy link
Owner

Gargaj commented Nov 23, 2018

@PoroCYon

@Gargaj Gargaj added the bug label Nov 23, 2018
@PoroCYon
Copy link
Contributor

I don't have a 4K monitor to test things, but as for the rest...

laptop without monitor : Bonzomatic takes 1/4 of the screen (lower left quadrant)

Did you set the window to the correct size (see config.json)? Sounds like it's initialized as 1920x1080 or so. The ~exact same thing happens for me when similar things happen.

I tested this both on i3 (i3-gaps, git version, X11) and sway (git version, Wayland, supposed to be an i3 clone), and on i3, it works as expected because GLFW is able to detect the monitor size, while on sway, when launching from my 1920x1080 external monitor (laptop is 1366x768), it's shown on the correct screen, but always using the size configured in config.json.

Bonzomatic started from the laptop screen : Bonzomatic uses the external monitor and seems to be properly displayed.

This behavior depends on the window manager/Wayland compositor used. It can kinda be configured using GLFW, but doing this in a 'universally' satisfactory way is very hard, so it should be left to the user instead, to configure the wm/compositor.

Hower moving the mouse to the extra right part of the screen makes it scroll until seing only the right part of bonzomatric screen; moving the mouse to the left of the screen do fix the issue

Can't reproduce using Sway, so I guess it's a bug in Gnome? (Wouldn't surprise me, because Gnome... isn't my favourite DE for multiple reasons :p)

Bonzomatic started from the external monitor : top part of Bonzomatic is hidden (the 20th first lines of text)

That sounds like glfw/glfw#1168 , but I'm not too sure.


Anyway, issues like these are hard to debug/solve because they depend on hardware configuration and interactions between lots of complex pieces of software.

I'm going to Cookie next week, so if you're going too, I'd like to take a look at the issue on your hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants