diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2011-07-21 10:07:57 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-21 15:09:30 +0300 |
commit | 858596bb483c495998d738f394d39104e14931be (patch) | |
tree | 68f83102d9458adb818c1930303fc0ae4615d36b /client/screen.h | |
parent | 3bc4fd4621798674b2a6d9537180d91ccde8ee0d (diff) | |
download | spice-858596bb483c495998d738f394d39104e14931be.tar.gz spice-858596bb483c495998d738f394d39104e14931be.tar.xz spice-858596bb483c495998d738f394d39104e14931be.zip |
client: fix endless recursion in rearrange_monitors, RHBZ #692976
I changed RedScreen::resize not to call rearrange_monitors. Instead,
the monitor should be configured correctly from Application, before
calling resize.
In addition, I made some cleanups to allow reusing rearrange_monitors code.
Diffstat (limited to 'client/screen.h')
-rw-r--r-- | client/screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/screen.h b/client/screen.h index 2b40d774..e7db4ef9 100644 --- a/client/screen.h +++ b/client/screen.h @@ -62,6 +62,8 @@ public: void attach_layer(ScreenLayer& layer); void detach_layer(ScreenLayer& layer); void on_layer_changed(ScreenLayer& layer); + /* When resizing on full screen mode, the monitor must be configured + * correctly before calling resize*/ void resize(int width, int height); void set_name(const std::string& name); uint64_t invalidate(const SpiceRect& rect, bool urgent); |