console: add unregister_displaychangelistener
commit35c9e0a5c2804b94d1a452a0a9a12d7a893b5318
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Jun 2010 09:51:31 +0000 (4 11:51 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Nov 2012 12:10:05 +0000 (1 13:10 +0100)
treed9a1feb4bdd33e8f2e43411742e992a1c4c51483
parent87e487a14bd9f3fb4a2b27179377e011bdda7c51
console: add unregister_displaychangelistener

Also change the way the gui_timer is initialized: each time a
displaychangelistener is registered or unregistered we'll check
whether we need a timer (due to dpy_refresh callback being present)
and if so setup a timer, otherwise zap it.  This way the gui timer
works correctly with displaychangelisteners coming and going.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
console.h
vl.c