{"id":44,"date":"2008-09-21T20:51:15","date_gmt":"2008-09-22T01:51:15","guid":{"rendered":"http:\/\/bda.ath.cx\/blog\/?p=44"},"modified":"2008-10-01T21:48:57","modified_gmt":"2008-10-02T02:48:57","slug":"sdl-windowed-fullscreen-no-mouse-trapping","status":"publish","type":"post","link":"http:\/\/bda.ath.cx\/blog\/2008\/09\/21\/sdl-windowed-fullscreen-no-mouse-trapping\/","title":{"rendered":"SDL Windowed Fullscreen (no mouse trapping)"},"content":{"rendered":"<p>The fullscreen display mode in SDL traps the mouse on one X display, which can be undesirable if you are running dual head with separate X screens and using SDL for something other than games.<\/p>\n<p>UPDATE: An even easier way of doing this is passing SDL_NOFRAME to SDL_SetVideoMode with width and height set to the full screen size.<\/p>\n<p>To get fullscreen without mouse trapping, you can tell the window manager to set the fullscreen property on the SDL app&#8217;s window. I&#8217;ve created a simple demo app to experiement with this &#8211; see my <a href=\"http:\/\/bda.ath.cx\/blog\/projects\/\">Projects<\/a> page for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The fullscreen display mode in SDL traps the mouse on one X display, which can be undesirable if you are running dual head with separate X screens and using SDL for something other than games. UPDATE: An even easier way of doing this is passing SDL_NOFRAME to SDL_SetVideoMode with width and height set to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[50,51],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-linux","category-programming","tag-sdl","tag-windowed-fullscreen"],"_links":{"self":[{"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":3,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":55,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/posts\/44\/revisions\/55"}],"wp:attachment":[{"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bda.ath.cx\/blog\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}