1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

GUIChatConsole: Use primary selection

This commit is contained in:
Desour 2022-08-23 19:28:54 +02:00 committed by DS
parent 062b4d036a
commit e9e8eed360
2 changed files with 45 additions and 10 deletions

View file

@ -84,8 +84,12 @@ private:
void drawText();
void drawPrompt();
// If clicked fragment has a web url, send it to the system default web browser
void middleClick(s32 col, s32 row);
// If clicked fragment has a web url, send it to the system default web browser.
// Returns true if, and only if a web url was pressed.
bool weblinkClick(s32 col, s32 row);
// If the selected text changed, we need to update the (X11) primary selection.
void updatePrimarySelection();
private:
ChatBackend* m_chat_backend;