This commit is contained in:
Nishi 2025-12-31 04:29:27 +09:00
commit d3147ac087
Signed by: nishi
GPG key ID: 27EF69B208EB9343
24 changed files with 80 additions and 80 deletions

View file

@ -393,9 +393,9 @@ static void MwLLNextEventImpl(MwLL handle) {
(void)handle; (void)handle;
if(handle->gdi.get_clipboard){ if(handle->gdi.get_clipboard) {
HGLOBAL hg; HGLOBAL hg;
if(OpenClipboard(handle->gdi.hWnd) != 0 && (hg = GetClipboardData(CF_TEXT)) != NULL){ if(OpenClipboard(handle->gdi.hWnd) != 0 && (hg = GetClipboardData(CF_TEXT)) != NULL) {
char* txt = malloc(GlobalSize(hg)); char* txt = malloc(GlobalSize(hg));
char* clp = GlobalLock(hg); char* clp = GlobalLock(hg);

View file

@ -107,7 +107,7 @@ static void llfocusouthandler(MwLL handle, void* data) {
MwDispatchUserHandler(h, MwNfocusOutHandler, data); MwDispatchUserHandler(h, MwNfocusOutHandler, data);
} }
static void llclipboardreceivedhandler(MwLL handle, void* data){ static void llclipboardreceivedhandler(MwLL handle, void* data) {
MwWidget h = (MwWidget)handle->common.user; MwWidget h = (MwWidget)handle->common.user;
MwDispatch3(h, clipboard_received, data); MwDispatch3(h, clipboard_received, data);

View file

@ -144,7 +144,7 @@ static void prop_change(MwWidget handle, const char* prop) {
} }
} }
static void clipboard_received(MwWidget handle, const char* data){ static void clipboard_received(MwWidget handle, const char* data) {
MwEntry t = handle->internal; MwEntry t = handle->internal;
const char* str = MwGetText(handle, MwNtext); const char* str = MwGetText(handle, MwNtext);
char* out = malloc(strlen(str) + strlen(data) + 1); char* out = malloc(strlen(str) + strlen(data) + 1);