View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#215
Originally Posted by TrueJournals View Post
nry: Not that I know of... I experimented a lot with getting fullscreen/unfullscreen to work. I have no experience in C, much less dealing with X windows, so my implementation of getting it fullscreen is pretty hacky. I welcome anyone to look over the code and see if something can be done better, but you'll just have to deal with putting it back to full screen until that happens.
libosso has a function that lets you do things when the display goes off (generally for power saving etc)

Here's my half-working (well, it catches the display going off but the fullscreening is iffy), lame attempt (my C sucks; hoping to catch the Vala and Python ship myself) of getting it to toggle fullscreen when the display goes off:
http://pastebin.com/f54a1b074

Actually, come think of it: You'd want to enable fullscreen when state is OSSO_DISPLAY_ON as you unfullscreen it beforehand.
And I should really osso_deinitialize...

But, anyway, many thanks for this: I find it usable now that I have a keyboard.

Last edited by qwerty12; 2009-07-07 at 11:10.