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

Author Topic: Window by default set to lower right corner  (Read 105 times)

0 Members and 1 Guest are viewing this topic.

ThePersonWithAQuestion

  • Newbie
  • *
  • Posts: 10
    • View Profile
Window by default set to lower right corner
« on: February 14, 2026, 09:44:41 pm »
(Debian using cinnamon desktop) I just updated my nuget package to the latest (3.0). So far everything is looking right, except for one thing. Previously, every window would appear centered on the desktop, but now it is on the corner. Is this documented somewhere? Also it doesn't look like I can start the window hidden nor pass the initial position on window creation.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11296
    • View Profile
    • development blog
    • Email
Re: Window by default set to lower right corner
« Reply #1 on: February 15, 2026, 08:33:35 pm »
Did you write some code that centered the window? SFML dosen't center the window nor does it specifically put it into the corner.

Also it doesn't look like I can start the window hidden nor pass the initial position on window creation.
Have are you trying to achieve this?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

ThePersonWithAQuestion

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Window by default set to lower right corner
« Reply #2 on: February 15, 2026, 09:07:20 pm »
My code does nothing, I guess it was centered because the window manager guessed it was a fine place. Relevant code:
Code: [Select]
        _window = new RenderWindow(
            new VideoMode(((uint)(width * zoom), (uint)(height * zoom))),
            title,
            Styles.Titlebar | Styles.Close,
            State.Windowed);

ThePersonWithAQuestion

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Window by default set to lower right corner
« Reply #3 on: February 15, 2026, 11:12:38 pm »
Update: if I add Style.Resize, now the window is placed close to the top left corner, which seems to be the default for other applications on the system.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11296
    • View Profile
    • development blog
    • Email
Re: Window by default set to lower right corner
« Reply #4 on: March 03, 2026, 12:58:28 pm »
Wondering if this is somewhat related to the this GitHub issue we recently got: https://github.com/SFML/SFML.Net/issues/297
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything