Coder Social home page Coder Social logo

Comments (11)

alebastr avatar alebastr commented on August 12, 2024 2

#118

I haven't tested on Hyprland, it may require full wl_display_roundtrip in display_surface_unmap to make the compositor aware that the surface is unmapped.

from rofi.

LorenzoBettini avatar LorenzoBettini commented on August 12, 2024 1

I'm afraid I can't help from the implementation point of view, but I can test possible fixes in case you come up with something.

from rofi.

lbonn avatar lbonn commented on August 12, 2024 1

@LorenzoBettini if it's another regression on hyprland side, I see no need to track it here.

In case rofi-wayland need some changes to work on hyprland again (does not seem to be the case so far?), I would prefer opening another separate issue as this particular one has been resolved already and it quickly gets confusing to talk about two similar bugs with different root causes in the same discussion thread.

from rofi.

LorenzoBettini avatar LorenzoBettini commented on August 12, 2024

Hyprland version: hyprland 0.35.0-2 in Arch Linux

from rofi.

lbonn avatar lbonn commented on August 12, 2024

Thanks, I have just tried (on Hyprland latest git revision) and it looks indeed broken.

This should be filed in Hyprland issues IMO: activate in wlr-foreign-toplevel-management stopped working between 0.34 and 0.35?

from rofi.

LorenzoBettini avatar LorenzoBettini commented on August 12, 2024

@lbonn do you plan to report it yourself? Maybe you have more knowledge of the involved low-level mechanisms. I could only guess about wmctrl, but maybe that's not even related to the problem?

from rofi.

lbonn avatar lbonn commented on August 12, 2024

@LorenzoBettini ok, done. I don't use Hyprland myself, if they are asking for more version details or testing, maybe you can assist at hyprwm/Hyprland#4829 :)

from rofi.

LorenzoBettini avatar LorenzoBettini commented on August 12, 2024

@lbonn thanks. They've already answered in that issue but I seem to understand they mention a new procedure that must be implemented in the window mode of rofi, right?

from rofi.

lbonn avatar lbonn commented on August 12, 2024

Yes, rofi is taking keyboard focus and we activate the target window before releasing the focus. It's not something that's really specified as far as I know but I also don't see why it should be such a problem in practice (would have to look into it).

Releasing the keyboard interactivity before activating the window would complicate things a bit.

likely hyprwm/Hyprland@17339e0

you need to:

unmap your ls
then issue an activate
then do whatever else and exit

if you issue an activate while you still have a keyboard-exclusive LS open, it will be ignored.

@alebastr any thoughts on this?

from rofi.

alebastr avatar alebastr commented on August 12, 2024

This seems surprisingly easy to implement: XCB window mode calls rofi_view_hide before activating the selection. And since XCB already behaves that way, it's not unreasonable to adjust the Wayland code.

We could add the missing implementation for wayland_rofi_view_hide and do the same in wayland-window.

from rofi.

LorenzoBettini avatar LorenzoBettini commented on August 12, 2024

I'm afraid we should re-open this, since the problem shows up again in Hyprland 0.40. I've already raised an issue on Hyprland because it also happens in other programs changing the window: hyprwm/Hyprland#6236

from rofi.

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.