Set GDK_NATIVE_WINDOWS unconditionally

Browsers are supposed to set it all the time, if we take what Firefox
and Chrome do as the spec (which is as reasonable as anything). May as
well apply the workaround everywhere instead of assuming only Flash
needs it.

Reported-By: Stanislav Brabec <sbrabec@suse.cz>
This commit is contained in:
David Benjamin 2011-08-13 11:23:27 -07:00
parent 66f613f65b
commit b8a6af3f13
1 changed files with 3 additions and 5 deletions

View File

@ -5,11 +5,9 @@
OS="`uname -s | tr '[A-Z]' '[a-z]'`"
ARCH="`uname -m`"
case "$*" in
*libflashplayer*)
export GDK_NATIVE_WINDOWS=1
;;
esac
# Browsers are supposed to set this (both Firefox and Chromium do), but some
# don't. Workaround this here.
export GDK_NATIVE_WINDOWS=1
if test -z "$TARGET_OS"; then
echo "*** NSPlugin Viewer *** error, TARGET_OS not initialized"