Comments (4)
Indeed, that's difficult to implement as is, as pointer events outside of the target surface are not sent by design in wayland.
It could maybe work if we'd reserve a layer covering the complete screen but only show the rofi window in a limited area. This way, we'd get mouse events anywhere. But that sounds a bit hacky and may be tricky with multi-monitors...
Another trick (maybe) would be to add an option to exit on pointer leave (in wl_pointer_listener) and have your compositor focus on click. Also weird
Otherwise, I think it would need some additional supports in protocols or compositor-specific.
I'll leave the bug open in case somebody has a great idea for this.
from rofi.
Another idea (deviates a bit from standard rofi): optionally make the #window
clickable, use the mainbox for actual content (that's how I do it to get a nice fullscreen overlay behind the actual "menu")
window:
background-color: "#YONICE"
children: "[mainbox]"
fullscreen: true
padding: 0 80% 0 0 # <------ use this for positioning instead of rofi's anchors
mainbox:
background-color: "#D000D3"
children: "[this, and, that]"
expand: true
[...]
from rofi.
Wouldn't the best way to do this be to steal the focus and then automatically close rofi when focus is lost (I assume Wayland apps can know that they lost focus)?
from rofi.
At least on hyprland it looks like rofi is getting the mouse events always, I guess because it's the only app on the overlay layer.
from rofi.
Related Issues (20)
- [BUG] Latest git from this morning seems to have broken `rofi -drun-use-desktop-cache -show drun ` HOT 5
- [BUG] Rofi window mode does not seem to work anymore in Hyprland HOT 11
- [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 10
- 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 HOT 1
- [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 3
- [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
- [REQUEST] Add support for the standard ext-foreign-toplevel-list
- [BUG] Cannot select item from history if it contains a space
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.