summaryrefslogtreecommitdiffstats
path: root/client/x11
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2011-12-20 16:36:13 +0200
committerUri Lublin <uril@redhat.com>2011-12-20 18:43:53 +0200
commit24d5852611c3d5be3ba824af64cd5a3356b82b9c (patch)
tree7fc9d2bbebdfa3ab3be9d02eb23d5f4e4a253860 /client/x11
parent5d28d1662e6e415367bb283d051e0a690a8ec2f2 (diff)
downloadspice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.tar.gz
spice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.tar.xz
spice-24d5852611c3d5be3ba824af64cd5a3356b82b9c.zip
client: menu: make RedWindow::set_menu() return an error-code (#758260)
RedWindow::set_menu() can fail (on Windows when in fullscreen mode). For Windows spice-client, when in fullscreen mode, the system-menu is NULL. Returns 0 upon success, non-0 (currently only -1) upon failure.
Diffstat (limited to 'client/x11')
-rw-r--r--client/x11/red_window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp
index 0c959256..2d179f89 100644
--- a/client/x11/red_window.cpp
+++ b/client/x11/red_window.cpp
@@ -2218,8 +2218,9 @@ void RedWindow::on_pointer_leave()
}
}
-void RedWindow::set_menu(Menu* menu)
+int RedWindow::set_menu(Menu* menu)
{
+ return 0;
}
void RedWindow::init()