diff options
| author | Juan Linietsky | 2015-09-21 09:39:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-09-21 09:39:46 -0300 |
| commit | ce6fefced8b0ac6d3be886db5ee1234dba7ec544 (patch) | |
| tree | e5279ee0312324455e5e560b5bf2dfa663103ccb /platform/x11/os_x11.cpp | |
| parent | 8f07f243183136d141562f19321ca45246d597f9 (diff) | |
| download | godot-ce6fefced8b0ac6d3be886db5ee1234dba7ec544.tar.gz godot-ce6fefced8b0ac6d3be886db5ee1234dba7ec544.tar.zst godot-ce6fefced8b0ac6d3be886db5ee1234dba7ec544.zip | |
Diffstat (limited to 'platform/x11/os_x11.cpp')
| -rw-r--r-- | platform/x11/os_x11.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 51f4392eb..ce8259eea 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1866,6 +1866,16 @@ void OS_X11::swap_buffers() { context_gl->swap_buffers(); } +void OS_X11::alert(const String& p_alert,const String& p_title) { + + List<String> args; + args.push_back("-center"); + args.push_back("-title"); + args.push_back(p_title); + args.push_back(p_alert); + + execute("/usr/bin/xmessage",args,true); +} void OS_X11::set_icon(const Image& p_icon) { if (!p_icon.empty()) { |
