Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML glitchy and wrong size in Arch Linux using a Tiling Window Manager  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

reportados123

  • Newbie
  • *
  • Posts: 18
    • View Profile
Hi, I'm creating SFML games/applications on Arch Linux using i3-wm, a tiling window manager.

For some reason, I get really weird things happening such as things being wrong size, etcetera. Here's a picture of this happening:  http://i46.tinypic.com/v4v7g1.png As you can see, the resolution is 1024 x 768 and the paddles and ball are not the right size. Furthermore, they're in the wrong place and it seems as if the game has been scaled down with a bunch of space not being used up.

Also, when I start the program in the terminal and then I put it into floating mode (not tiled mode), the program doesn't update the display until a click happens. http://i46.tinypic.com/2vb7p83.png

When I compile the same code in Windows, it doesn't happen. It only happens in Linux when using a tiling window manager. How do I fix this? Thanks.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10991
    • View Profile
    • development blog
    • Email
Re: SFML glitchy and wrong size in Arch Linux using a Tiling Window Manager
« Reply #1 on: January 18, 2013, 01:31:54 am »
It's most probably i3-wm's fault and/or your setup...
Have you ever run any other OpenGL application with i3-wm?

Also does your testing code simply create a window?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

reportados123

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: SFML glitchy and wrong size in Arch Linux using a Tiling Window Manager
« Reply #2 on: January 18, 2013, 02:14:38 am »
It's most probably i3-wm's fault and/or your setup...
Have you ever run any other OpenGL application with i3-wm?

Also does your testing code simply create a window?

Yeah it's probably i3-wm's fault; and no I haven't run any other OpenGL with i3-wm. No, my testing code doesn't create a simple window, it's an actual Pong game I made. However, even creating a simple window still causes this. I think the cause of this problem is that i3-wm automatically tiles it. I looked up on how to start a program without automatically tiling it, but no results.

It'd be nice if someone could fix this problem though.

 

anything