-
Notifications
You must be signed in to change notification settings - Fork 246
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
Full screen to cover the top bar on mac? #267
Comments
By changing the config I am able to draw on top of the top bar but my monitor goes black when i start and exit the application.
|
What happens if you remove the 'Monitor' option and add the 'Maximized=true' option? |
I think (I have no proof except for using a mac over the years) that unless your application is truly fullscreen (where the monitor flashes), I don't think you can draw over the menubar. I can't think of a non-fullscreen application that can. I'll continue to poke around the googles to see if this is true. |
@dusk125 I use Gyazo (https://gyazo.com/) for screenshots and it's able to draw over the menubar without flashing and I wanted to replicate this behaviour in go and had hoped that it was simple enough to do with pixel but it seems that it may be much more complicated than that I guess. |
And there's the proof ;) Yeah might be, out of curiousity, what are the values of your monitorX and monitorY and do they match the actual height and width of the monitor. My thought is that macos is giving you back a truncated height from the opengl primarymonitor size function. |
I'm using a MacBook Pro (15-inch, 2018) with a 15,4-inch retina display (2880 × 1800)
edit: just to clarify, the y coordinate is less than 1050 in the middle of the bar or right under the bar. |
I am making a program that can draw squares over other applications like this
But I can't seem to draw on top of the top bar on mac, is there a setting that allows this?
My full code can be found here: https://github.com/markustenghamn/mousedraw
The text was updated successfully, but these errors were encountered: