by simias · 8y ago · 0 comments
Just in order to aleviate my fears, can somebody tell me if in this brave new world it'll still be possible to effectively implement something like DWM or some other tiling WM "within" Wayland? Are there pitfalls I should be aware of?
I suppose there's got to be a way to do custom tiling, but I worry that there might be other less obvious limitations. For instance every time I attempted to use custom "window manager" on Windows (to add virtual workspaces for instance) I quickly noticed that it didn't work very well. One problem was that the window management was cooperative instead of preemptive: when the "window manager" attempted to hide a window it'd basically send a message to the application requesting that the window be minimized. If the app was frozen or simply uncooperative it'd remain where it was. Could that happen in Wayland?
[0] http://swaywm.org/ [1] https://github.com/swaywm/wlroots [2] https://github.com/swaywm/wlroots/wiki
Is it possible to implement an interaction bound to a global hotkey (e.g. middle click) that takes the current selected text (in any window) and send it to the event target window as keypress events? Without special support from either program? [xselection pasting]
Can I monitor and/or intercept (block) input events of any program without special (voluntary) support from the monitored program? Can I send arbitrary synthetic input events? [hotkey macros]
Features that require opt-in support from the application don't count (it needs to work on proprietary programs and programs that use any toolkit (not just GTK/Qt).
I rely on these features, so I will be sticking with X11 if Wayland isn't compatible.
>Is it possible to implement an interaction bound to a global hotkey (e.g. middle click) that takes the current selected text (in any window) and send it to the event target window as keypress events? Without special support from either program? [xselection pasting]
Yes, doing it the way you described is possible. Or you could just use the existing and moderately-well-supported primary selection protocol:
https://github.com/swaywm/wlroots/blob/master/protocol/gtk-p...
We should try to get that standardized...
>Can I monitor and/or intercept (block) input events of any program without special (voluntary) support from the monitored program? Can I send arbitrary synthetic input events? [hotkey macros]
Sure, from the compositor. If you want clients to call the shots you need a protocol.
> Or you could just use the existing and moderately-well-supported primary selection protocol
Unless I'm missing something that requires support from both programs (or at the very least the program that you copy from).
Hopefully your fears are sufficiently alleviated by that! I suspect you've got a mistaken idea about what Wayland actually is and what it does.
As for your 3rd paragraph, I'd have to leave that to someone more experienced than I am.