add a callback to notify desktop size changes

This commit is contained in:
Antoine Mercadal 2011-01-07 11:14:18 +01:00
parent 40a653f555
commit 9eb31e72ae
1 changed files with 6 additions and 1 deletions

View File

@ -147,6 +147,10 @@ cdef('clipboardReceive',
'func', function() { Util.Debug("clipboardReceive stub"); },
'callback: clipboard contents received');
cdef('desktopSizeChanged',
'func', function() { Util.Debug("desktopSizeChanged stub"); },
'callback: desktop size changed');
// Override/add some specific getters/setters
that.set_local_cursor = function(cursor) {
@ -1380,7 +1384,8 @@ encHandlers.DesktopSize = function set_desktopsize() {
FBU.bytes = 0;
FBU.rects -= 1;
conf.desktopSizeChanged(that, {"width": fb_width, "height": fb_height});
Util.Debug("<< set_desktopsize");
return true;
};