11
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 10 Sep 2024
11 points (86.7% liked)
Programming
17314 readers
313 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
If you mean at the X11 call level, I think that it's a window hint, assuming that you're talking about a borderless fullscreen window, and not true fullscreen (like, DGA or DGA2 or something, in which case you don't have a fullscreen X11 window, but rather direct access to video memory).
https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html
See
_NET_WM_STATE_FULLSCREEN, ATOM
If you're using a widget toolkit like gtk or something and writing the program, it'll probably have some higher-level fullscreen toggle function that'll flip that on X11. Ditto for SDL.
If you mean in a script or something, I'd maybe try looking at
xprop(1)
to set that hint.I'd also add, on the "user" front, that I don't use F11 and I think that that every window manager or desktop environment that I've ever used provides some way to set a user-specified keystroke to toggle a window's fullscreen state. I've set Windows-Enter to do that for decades, on every environment I've used.