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

Clear the actual screen #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MaxGyver83
Copy link

@MaxGyver83 MaxGyver83 commented Oct 6, 2024

Hi @cMardc,

this project is a great demonstration of how to use some X11 libraries!

I have noticed one issue, maybe specific to my tiling window manager (dwm):

When the actual window/canvas is larger than the requested size (WIDTH*HEIGHT), it's possible to draw on the whole canvas but when I press the C key, only an area of WIDTH*HEIGHT is cleared:

2024-10-06 17 23 31 1045x1026 Window

This pull request fixes this by using the actual window size in clearScreen.

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.

1 participant