summaryrefslogtreecommitdiff
path: root/indra/media_plugins/cef/media_plugin_cef.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-10-03 19:27:30 +0800
committerErik Kundiman <erik@megapahit.org>2025-10-03 19:27:30 +0800
commit8f11eb47a617d3a1344a39ed37dd1de3b422fb0b (patch)
tree9bf6a43cbb694ca241e9fc146294794989924b83 /indra/media_plugins/cef/media_plugin_cef.cpp
parentff1fba5bbc3ec7cb763d68cdac13a2dfe2895e9e (diff)
Disable Dullahan 1.21 new features on Linux for now
I've tried getting Dullahan 1.21 compiled with Spotify's CEF 139, it did build, but the internal browser didn't work, so what would be the point. I could have missed something, but we're sticking with Dullahan 1.14 on Linux for now.
Diffstat (limited to 'indra/media_plugins/cef/media_plugin_cef.cpp')
-rw-r--r--indra/media_plugins/cef/media_plugin_cef.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp
index 5693420bb6..c50a37aad7 100644
--- a/indra/media_plugins/cef/media_plugin_cef.cpp
+++ b/indra/media_plugins/cef/media_plugin_cef.cpp
@@ -955,6 +955,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
{
authResponse(message_in);
}
+#if !LL_LINUX
if (message_name == "edit_undo")
{
mCEFLib->editUndo();
@@ -963,6 +964,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
{
mCEFLib->editRedo();
}
+#endif
if (message_name == "edit_cut")
{
mCEFLib->editCut();
@@ -975,6 +977,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
{
mCEFLib->editPaste();
}
+#if !LL_LINUX
if (message_name == "edit_delete")
{
mCEFLib->editDelete();
@@ -987,6 +990,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
{
mCEFLib->viewSource();
}
+#endif
}
else if (message_class == LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER)
{
@@ -1170,19 +1174,28 @@ void MediaPluginCEF::unicodeInput(std::string event, LLSD native_key_data = LLSD
//
void MediaPluginCEF::checkEditState()
{
+#if !LL_LINUX
bool can_undo = mCEFLib->editCanUndo();
bool can_redo = mCEFLib->editCanRedo();
+#endif
bool can_cut = mCEFLib->editCanCut();
bool can_copy = mCEFLib->editCanCopy();
bool can_paste = mCEFLib->editCanPaste();
+#if !LL_LINUX
bool can_delete = mCEFLib->editCanDelete();
bool can_select_all = mCEFLib->editCanSelectAll();
+#endif
+#if LL_LINUX
+ if ((can_cut != mCanCut) || (can_copy != mCanCopy) || (can_paste != mCanPaste))
+#else
if ((can_undo != mCanUndo) || (can_redo != mCanRedo) || (can_cut != mCanCut) || (can_copy != mCanCopy)
|| (can_paste != mCanPaste) || (can_delete != mCanDelete) || (can_select_all != mCanSelectAll))
+#endif
{
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "edit_state");
+#if !LL_LINUX
if (can_undo != mCanUndo)
{
mCanUndo = can_undo;
@@ -1194,6 +1207,7 @@ void MediaPluginCEF::checkEditState()
mCanRedo = can_redo;
message.setValueBoolean("redo", can_redo);
}
+#endif
if (can_cut != mCanCut)
{
@@ -1213,6 +1227,7 @@ void MediaPluginCEF::checkEditState()
message.setValueBoolean("paste", can_paste);
}
+#if !LL_LINUX
if (can_delete != mCanDelete)
{
mCanDelete = can_delete;
@@ -1224,6 +1239,7 @@ void MediaPluginCEF::checkEditState()
mCanSelectAll = can_select_all;
message.setValueBoolean("select_all", can_select_all);
}
+#endif
sendMessage(message);
}