Coder Social home page Coder Social logo

Comments (21)

masm11 avatar masm11 commented on August 12, 2024 1

@declanqian I'm debugging.
This should be a work around until fixed:

(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT STRING text/plain))

from emacs.

masm11 avatar masm11 commented on August 12, 2024

WIth clipboard, it does not reproduce.
WIth kill-ring, it reproduced.

not clipboard issue, but kill-ring issue?

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

Yes, is kill-ring issue...

from emacs.

masm11 avatar masm11 commented on August 12, 2024

I fixed it in feature/pgtk on savannah. Please try it.

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

It is indeed fixed in emacs,but there is still a problem.
When I copy unicode from emacs to chrom(e)ium

recording_2021-02-17-104952.mp4

I currently only find chrom(e)ium has problems

from emacs.

declantsien avatar declantsien commented on August 12, 2024

Don't think this is an issue from Emacs side. If you input some CJK
using Firefox(which runs naively under wayland), then copy/paste
it into Chromium. Same issue. @Makima0

You can using Chromium extensions like atomic-chrome
or Edit with Emacs to input CJK for now.

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

Don't think this is an issue from Emacs side. If you input some CJK
using Firefox(which runs naively under wayland), then copy/paste
it into Chromium. Same issue. @Makima0

You can using Chromium extensions like atomic-chrome
or Edit with Emacs to input CJK for now.

I can copy normally from alacritty.

recording_2021-02-17-174216.mp4
(setq wl-copy-process nil)
(defun wl-copy (text)
  (setq wl-copy-process (make-process :name "wl-copy"
                                      :buffer nil
                                      :command '("wl-copy" "-f" "-n")
                                      :connection-type 'pipe))
  (process-send-string wl-copy-process text)
  (process-send-eof wl-copy-process))
(defun wl-paste ()
  (if (and wl-copy-process (process-live-p wl-copy-process)) nil
    (shell-command-to-string "wl-paste -t text -n 2>/dev/null")))
(setq interprogram-cut-function 'wl-copy)
(setq interprogram-paste-function 'wl-paste)
(setq confirm-kill-processes nil)

If you change the default interprogram-cut-function and interprogram-paste-function of emacs to wl-clip, everything returns to normal.
So I think it’s an emacs issue.

from emacs.

declantsien avatar declantsien commented on August 12, 2024

Nice. Indeed it works. @Makima0

Side question. Which input method software are you using
when input CJK characters on alacritty?
I can't active fcitix 5 on alacritty nor chromium.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@Makima0
It does not reproduce with emacs -Q.

Please tell me:

  • version of gtk
  • version of chromium
  • window manager and its version

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

@Makima0
It does not reproduce with emacs -Q.

Please tell me:

  • version of gtk
  • version of chromium
  • window manager and its version

gtk3
sway version 1.5.1
Google Chrome 88.0.4324.146

recording_2021-02-17-232100.mp4

from emacs.

masm11 avatar masm11 commented on August 12, 2024

I installed sway 1.5.1 and downgraded chromium to 88.0.4324.146, but the issue does not reproduce.

What OS do you use? And what is its version?

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

I installed sway 1.5.1 and downgraded chromium to 88.0.4324.146, but the issue does not reproduce.

What OS do you use? And what is its version?

I use the latest Arch Linux.
Use this flag to ensure that chrome runs on Wayland.
--enable-features=UseOzonePlatform --ozone-platform=wayland
I guess you are using xwayland to run chrome?
If you use xwayland , this problem will not occur.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

Thanks for the OS and version.

chromium on wayland?? I didn't know such a thing...
ok, I'll try it tomorrow night.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

confirmed.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

Run gtk3-demo, double-click Entry Buffer in Entry, input a unicode string in the entry buffer, and copy and paste it to chromium.
The same issue reproduces.
Maybe it is gtk's issue or chromium's issue.

I'll look for a work around.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@Makima0
Fixed in feature/pgtk on savannah. Please try again.

from emacs.

kekeimiku avatar kekeimiku commented on August 12, 2024

@masm11 The issue has been fixed, thank you very much!

from emacs.

declantsien avatar declantsien commented on August 12, 2024

I have problem yanking text from Chromium
Select some text from Chromium(wayland and xwayland) and copy C-c. Open PGTK Emacs, hit C-y.
Copied text is not there.
Can you guys verify this?
@masm11 @Makima0

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@declanqian reproduced.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@declanqian Fixed in feature/pgtk on savannah. Please try it.

from emacs.

declantsien avatar declantsien commented on August 12, 2024

Cool, it's working. @masm11

from emacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.