Fix no output when ibus-daemon is running on another display.
Fix no output when ibus-daemon is running on another display.

Using ssh -X or another display, the hostname and display numbers
can be different between the GTK clients and ibus-daemon.
This patch fixes the output:
"Events queue growing too big, will start to drop."

BUG=RH#1004135
TEST=clients/gtk*/im-ibus.so

Review URL: https://codereview.appspot.com/13707046

j717273419/ibus,ibus/ibus,fujiwarat/ibus,Keruspe/ibus,fujiwarat/ibus,fujiwarat/ibus,Keruspe/ibus,Keruspe/ibus,Keruspe/ibus,j717273419/ibus,j717273419/ibus,fujiwarat/ibus,ibus/ibus,ibus/ibus,ibus/ibus,j717273419/ibus