Coder Social home page Coder Social logo

pdf-tools' arrow issue on X about emacs HOT 16 CLOSED

masm11 avatar masm11 commented on August 12, 2024
pdf-tools' arrow issue on X

from emacs.

Comments (16)

masm11 avatar masm11 commented on August 12, 2024

while in Wayland the arrow does not have a shadow background.

Whether a window has a shadow is depend on the environment even if on X.
I think it is not important.

the arrow stays there after alt-tab

What does your alt-tab do?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

Whether a window has a shadow is depend on the environment even if on X.
I think it is not important.

I personally don't think this is a bug, as said in #51, I think it is better this way. But I do not know if this is related to the desktop environment/emacs/X vs Wayland/pdf-tools or if the developer had a clear intention.

What does your alt-tab do?

Switches to another window, in this case to a nautilus one. I will test later if moving the window also creates this behaviour.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@A6GibKm

Switches to another window,

Only switching focus? Or the emacs window disappears?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

Only switching focus? Or the emacs window disappears?

I do not know exactly the difference, but I think it switches focus. Let me be more precise on ways of reproducing this on GNOME and X11. This was done on Fedora Silverblue 33 which uses GNOME 3.38, but I am sure the only relevant bit is GNOME+Xorg.

  1. Open a latex file and it correspondent pdf-tools buffer and a folder under nautilus, press alt-tab to switch to nautilus and the arrow will be still be there, note that the arrow dissapears after ~3s so this has to be done quickly.

  2. Under the same setting as before, instead of using alt-tab you can have both windows minimized and after the arrow appears, just drag the folder on top of the buffer, and the arrow will still appear.

  3. Under the same setting, just make the arrow appear and move the Emacs windows, the arrow won't follow the window.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

Under the same setting as before, instead of using alt-tab you can have both windows minimized and after the arrow appears, just drag the folder on top of the buffer, and the arrow will still appear.

How to drag it while both of nautilus and emacs windows are minimized?
You mean dragging from desktop?

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

My bad, I meant "while both windows are not maximized" so you are able to move one window on top of the other by dragging.

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

I would like to screen record this, but I only know how to screenrecord under wayland.

EDIT: Actually...

https://imgur.com/a/NfVROY2

from emacs.

titaniumbones avatar titaniumbones commented on August 12, 2024

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

The Silverblue base image does not come with it as far as I know. But the above edit has a imgur gif with the recording.

EDIT: Actually CTRL+Alt+Shift+R starts/stops screenrecording.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

thank you for the screen record. I understood.

My bad, I meant "while both windows are not maximized" so you are able to move one window on top of the other by dragging.

ok.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

On combination of X-build and GNOME(Xorg),
the arrows seem to disappear when some of mouse events occur.
I'll try to make pgtk emacs the same behavior.
Please wait for a while.

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

Are you sure it disappears on certain mouse events? It gives that impression but I am sure it is on a short timer.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

I am sure it is on a short timer.

I didn't think the possibility of a shorter timer. thanks.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

@A6GibKm Try #59. It is fixed in some cases.

from emacs.

A6GibKm avatar A6GibKm commented on August 12, 2024

I am testing right now and I am not sure what changed. The arrow now disappears when passing the mouse over the title bar of Emacs (I am not sure any more if this is part of the intended behaviour) and it does not follow the window.

To be honest X is a pain and I don't use it at all, it might be the case that the arrow does not work at all on x11 on upstream emacs either.

from emacs.

masm11 avatar masm11 commented on August 12, 2024

The arrow now disappears when passing the mouse over the title bar of Emacs (I am not sure any more if this is part of the intended behaviour)

It is also the behavior of X-build.

it does not follow the window.

On X-build, the arrow disappears when starting moving the window.
But on pgtk, I can't get any events on starting moving the window. Instead, I get a event on ending moving the window. That is why the arrow stays while moving the window and disappears when ending moving the window.

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.