Commit graph

241 commits

Author SHA1 Message Date
Shawn Wallace
b962a0f33b Don't use MULTIPLE target atom for getting selections
The ICCCM claims this is a "required" target for selection owners,
however several GTK clients (zenity, winecfg) don't seem to support it.
(So much for required.) Just manually grab all the supported targets
individually from the selection owner instead.
Fix for #50
2024-09-15 01:28:32 -04:00
Shawn Wallace
402a764a11 Dispatch wl_shm_pool::resize
Should fix #52
2024-09-14 11:15:27 -04:00
Gavin
07d3cb9820
add: nix flake (#53) 2024-09-14 11:09:49 -04:00
Shawn Wallace
95afa163a6 Removed lingering "exwayland" references 2024-08-08 01:34:48 -04:00
Shawn Wallace
cf439000a5 Prioritize xdg_output for updating window positions
Fixes #46
2024-08-08 01:32:18 -04:00
Shawn Wallace
8892570093 Fix panic when title contains null bytes
Fixes #42
2024-07-22 18:24:21 -04:00
galister
054af2a1f7
do not panic if focus_window fails (#39)
Some windows don't take well to being focused, but it doesn't matter that much.
---------

Co-authored-by: Shawn Wallace <yungwallace@live.com>
2024-07-16 18:12:58 -04:00
Shawn Wallace
3140b7c83e Replace references to "exwayland" with "satellite"
Exwayland was the original working name for the project, but satellite
is way cooler.
2024-07-07 17:07:39 -04:00
Shawn Wallace
5150791e76 Cargo format 2024-07-07 16:50:28 -04:00
Shawn Wallace
03a0e1754d Unconditionally set input focus on activation
Wine windows had WM_HINTS.input set to False, and expected use of the
WM_TAKE_FOCUS protocol, but Wayland input is much more absolute, so this
protocol is useless to us. Always focusing windows seems to be fine, so
just do that.
Should fix #35.
2024-07-07 16:50:28 -04:00
Shawn Wallace
891d056497 Document systemd support and add example service file 2024-07-07 15:55:24 -04:00
Michael Yang
d8bfa0a1a3 feat: add systemd notify with feature 2024-07-06 13:15:50 -04:00
Shawn Wallace
d32eae139d Avoid exposing mime types that couldn't be read from through clipboard
Attempts to address #27
2024-07-04 17:55:49 -04:00
Shawn Wallace
98a81c2668 Support repositioning mapped popups
Requires xdg_wm_base version 3+. Helps make some Steam popups act more
consistently.
2024-07-04 16:02:35 -04:00
Shawn Wallace
ece5d1bd10 Actually properly offset popups on offset outputs
Also update window positions when output positon changes.
2024-07-04 14:57:07 -04:00
Shawn Wallace
3794c4b945 Properly offset popups on offset outputs 2024-07-02 00:16:01 -04:00
Shawn Wallace
d8a9c28fa7 Fix hover when focus is different from hover window
Fixes #14
2024-06-30 02:45:31 -04:00
Shawn Wallace
d3a46b7c8a Fix mouse input on outputs not located at 0,0
Possibly addresses #21.
2024-06-30 01:20:02 -04:00
galister
0a5dddacfd fix crash when handling events with stale HopSlotMap key 2024-06-24 12:48:08 -04:00
galister
f261e3feec Fix panic when WM_NAME or NET_WM_NAME has invalid UTF-8 2024-06-15 01:09:07 -04:00
Shawn Wallace
b6d281967c Update dependencies and bump version 2024-06-12 00:16:18 -04:00
Shawn Wallace
721fe5ee77 Flush after wl_shm_pool destruction
Bit of a hacky fix for #12. It seems like the issue is caused by too
many wl_shm_pools being created and then destroyed before being flushed
to the parent compositor. Might negatively impact performance, but most
performant things shouldn't be using wl_shm anyway.
2024-06-11 23:30:58 -04:00
Shawn Wallace
017b683af9 Support globals with higher advertised versions than supported
Fixes launching on Gnome.
2024-06-11 21:44:57 -04:00
Shawn Wallace
5e7f2df05e Sync clipboard between X11 and Wayland
You would not believe how much work this was.
Closes #23
2024-06-06 22:41:19 -04:00
Shawn Wallace
601223d3ae xstate: ignore some more BadWindow errors
Closes #24
2024-05-28 22:31:04 -04:00
Shawn Wallace
02bee5aea7 Support WM_CLASS missing instance and null
Done by AvaloniaILSpy, for some reason
2024-05-24 00:09:28 -04:00
Shawn Wallace
2444c2f07b xstate: Ignore Window/Drawable errors
Sometimes, windows will have actually been destroyed before we even
processed the events for it, so if we try to do something like get
properties on windows (as we do whenever a window is mapped) we will get
an error from the X server, but this is fine - we can just ignore this.

Should fix #16, #20, #22, etc.
2024-05-24 00:06:58 -04:00
Shawn Wallace
016cef6f72 Reset _NET_ACTIVE_WINDOW when the active window is unmapped 2024-05-20 18:51:35 -04:00
Shawn Wallace
3b2698f1de Switch to using xwayland shell protocol over WL_SURFACE_ID
Seems to fix #13. This means a hard requirement on Xwayland 23.1.
2024-05-20 18:51:28 -04:00
Shawn Wallace
da82e6907c Add pointer constraints support (zwp_pointer_constraints_v1)
Part of #8
2024-05-20 02:14:18 -04:00
Shawn Wallace
2317ebb842 Set input focus on windows without WM_HINTS input flag
Also miscellaneous formatting things.
Part of #8
2024-05-20 01:26:06 -04:00
Shawn Wallace
38e58bd11d Fix integration tests 2024-05-20 00:45:09 -04:00
Shawn Wallace
7c6915b0ec Add wl_region and wl_surface.set_input_region support
Needed for latest Xwayland.
2024-05-18 02:19:26 -04:00
Shawn Wallace
c95655299e Add dependencies to readme and bump version 2024-05-17 23:52:49 -04:00
Shawn Wallace
c1fc38c3d2 Reorganize file layout
Moves satellite to be the root package, also allowing it to be built
by default.
2024-05-17 23:01:57 -04:00
Shawn Wallace
3afc9ffa9d Handle reparented windows correctly
Also refactored to avoid dealing with window properties until a window
is actually mapped.

Fixes #10
2024-05-17 22:43:00 -04:00
Supreeeme
b8bd07ce93 Use -displayfd instead of signals for Xwayland readiness
The -displayfd argument is much friendlier to testing and is generally
more stable. As a result, omitting the display argument to the program
will result in Xwayland searching for the next available display. This
also allows integration tests to run simultaneously and when there is
already an X server running on the system.

This commit also changes how the state of the program is communicated
with integration tests (via the RunData trait).
2024-05-16 00:50:10 -04:00
Supreeeme
7976e3ad37 Add initial support for toplevel titles and app ids
Should work with most app titles, but for some reason some app ids have
the first letter capitalized (Remmina) and some windows don't get the
class/title set at all (xterm)
Part of #9
2024-05-11 00:37:11 -04:00
Shawn Wallace
e70cb81751 Add wl_touch support
Fixes #1
2024-04-29 19:35:46 -04:00
Shawn Wallace
7aaf98e5e0 Fix incorrect behavior with release build 2024-04-29 00:44:41 -04:00
Shawn Wallace
85b940e427 Initial commit 2024-04-29 00:30:06 -04:00