Comments (11)
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.
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.
@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.
Hyprland version: hyprland 0.35.0-2 in Arch Linux
from rofi.
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.
@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.
@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.
@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.
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 exitif you issue an activate while you still have a keyboard-exclusive LS open, it will be ignored.
@alebastr any thoughts on this?
from rofi.
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.
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)
- [BUG] Rofi window mode not working on KWIN HOT 2
- [BUG] -window-command ignored HOT 4
- [BUG] Latest git from this morning seems to have broken `rofi -drun-use-desktop-cache -show drun ` HOT 5
- [BUG] Rofi steals Hyprland KB input HOT 4
- [BUG \ NEED HELP] Mouse scrolling skips an entry HOT 3
- [BUG] Rofi does not work in KDE Plasma 6 (Wayland) HOT 8
- Rofi unresponsive to touch input[BUG] HOT 3
- [BUG] rofi-calc no longer working/detected HOT 3
- rofi crashes randomly on fractional scaling. HOT 1
- [REQUEST] flatpak rofi builds HOT 2
- [REQUEST] keybinds cyrillic symbols HOT 2
- [BUG] Arch package not found HOT 3
- [BUG] Starting programs with arguments from run history fails due to incorrect quoting HOT 3
- [REQUEST] input method support for wayland
- [REQUEST] Add a fix for icons path for main line Rofi. HOT 5
- [REQUEST] style Listview Elements Individually
- [BUG] Laptop touchpad is not working for scrolling through rofi elements HOT 2
- [BUG] drun entries invisible HOT 1
- [BUG] Rofi crashes after launch with "listener function for opcode 1 of wl_data_device is NULL" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rofi.