fix on linux

This commit is contained in:
rustdesk
2021-05-02 21:19:48 +08:00
parent 547b85adbf
commit 2adc774d8a
5 changed files with 46 additions and 5 deletions

View File

@@ -7,6 +7,8 @@ var is_osx = OS == "OSX";
var is_win = OS == "Windows";
var is_linux = OS == "Linux";
var is_file_transfer;
var is_xfce = false;
try { is_xfce = handler.is_xfce(); } catch(e) {}
function hashCode(str) {
var hash = 160 << 16 + 114 << 8 + 91;
@@ -221,8 +223,8 @@ function msgbox(type, title, text, callback, height, width) {
var dialog = {
client: true,
parameters: msgbox_params,
width: width,
height: height,
width: width + (is_xfce ? 50 : 0),
height: height + (is_xfce ? 50 : 0),
};
var html = handler.get_msgbox();
if (html) dialog.html = html;