Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

X11 Copy and Paste does not work

Open
#17 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

The copy and paste feature of the X11 demo does not work. The code (found in nuklear_xlib.h) that accesses the X11 clipboard seems to have all come from one commit ([\#371](https://github.com/vurtun/nuklear/pull/371/commits/0073110c9b17b07bb78dd0f5c16778d7f5425d7f)). Since then, there have been no substantial changes to the respective lines of code.

Copy and paste in the gdi equivalent works (nuklear_gdi.h), so the problem seems specific to the xlib implementation.

![copy_paste](https://user-images.githubusercontent.com/4354703/70211271-e863b780-16f1-11ea-8db9-133d9cacb66f.png)

Contributor guide

Open the contributing guide

Research direction

Start in nuklear_xlib.h and compare its X11 clipboard handling with the working implementation in nuklear_gdi.h. Reproduce the problem in the X11 demo, then verify that copying and pasting work there without breaking the existing GDI behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.