xbmc/xbmc — pull request #3004 by nikolai-r (2013-07-24 20:05:09+00:00)
Title: Fix return from fullscreen for linux/gnome not returning to previous size.

Seems I am not the only one with this issue. Not sure the exact test cases that cause this issue but under linux/gnome when returning from fullscreen mode to window mode. There is a window resize event sent to XBMC after exiting fullscreen that sets it to the size of current desktop resolution after setting it to the previous window size, resulting in an unwanted maximized window. This simple fix just checks if the resize event is the same dimensions as the desktop resolution while NOT in fullscreen to avoid a resize. Has only been tested on linux mint 15 (cinnamon). Since this case should never happen anyways seems like a reasonable quick fix. Possible to cause resize issues with hidden task bars when maximizing the widow though, this is untested.