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

adding support for changing window position #82

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

PalsFreniers
Copy link

@PalsFreniers PalsFreniers commented Sep 11, 2024

I added a helper function to move a window to a specific point on the screen :

void mlx_set_window_position(void *mlx, void *win, int x, int y);

I added a function named setWindowPosition to the Application class and used SDL_SetWindowPosition to implement the displacement of the window

mlx_set_window_position(void *mlx, void *win, int x, int y)
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! Thank you for your contribution.

If you are fixing a bug, please reference the issue number in the description.

If you are implementing a feature request, please explain all your changes in your pull request.

@Kbz-8
Copy link
Member

Kbz-8 commented Sep 12, 2024

in which case would you want to move the window ?

@PalsFreniers
Copy link
Author

I have multiple window and I want to move them a startup so they don't begin one on top of the other

@Kbz-8
Copy link
Member

Kbz-8 commented Sep 12, 2024

seems legit

@Kbz-8 Kbz-8 merged commit 33d2b98 into seekrs:master Sep 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants