Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window is always borderless and hides mouse cursor under Wayland #224

Closed
mvforell opened this issue Nov 5, 2020 · 5 comments
Closed

Window is always borderless and hides mouse cursor under Wayland #224

mvforell opened this issue Nov 5, 2020 · 5 comments

Comments

@mvforell
Copy link
Contributor

mvforell commented Nov 5, 2020

When running under Wayland the created window is always borderless. Also there no cursor while it is over the window.

Screenshot (Gnome on X11):

Screenshot (Gnome on Wayland, sway looks similar):

Running with WAYLAND_DEBUG=1 gives the following log:

[1604604020.617104] -> [email protected]_registry(2)
[1604604020.617145] -> [email protected](3)
[1604604020.617348] <- [email protected]_id(3)
[1604604020.617373] <- [email protected](1, "wl_drm", 2)
[1604604020.617413] <- [email protected](2, "wl_compositor", 4)
[1604604020.617451] <- [email protected](3, "wl_shm", 1)
[1604604020.617481] <- [email protected](4, "wl_output", 2)
[1604604020.617516] <- [email protected](5, "wl_output", 2)
[1604604020.617556] <- [email protected](6, "zxdg_output_manager_v1", 3)
[1604604020.617607] <- [email protected](7, "wl_data_device_manager", 3)
[1604604020.617672] <- [email protected](8, "zwp_primary_selection_device_manager_v1", 1)
[1604604020.617733] <- [email protected](9, "gtk_primary_selection_device_manager", 1)
[1604604020.617808] <- [email protected](10, "wl_subcompositor", 1)
[1604604020.617876] <- [email protected](11, "xdg_wm_base", 3)
[1604604020.617912] <- [email protected](12, "zxdg_shell_v6", 1)
[1604604020.617943] <- [email protected](13, "wl_shell", 1)
[1604604020.617991] <- [email protected](14, "gtk_shell1", 3)
[1604604020.618019] <- [email protected](15, "wp_viewporter", 1)
[1604604020.618153] <- [email protected](16, "zwp_pointer_gestures_v1", 1)
[1604604020.618200] <- [email protected](17, "zwp_tablet_manager_v2", 1)
[1604604020.618253] <- [email protected](18, "wl_seat", 5)
[1604604020.618287] <- [email protected](19, "zwp_relative_pointer_manager_v1", 1)
[1604604020.618396] <- [email protected](20, "zwp_pointer_constraints_v1", 1)
[1604604020.618459] <- [email protected](21, "zxdg_exporter_v1", 1)
[1604604020.618508] <- [email protected](22, "zxdg_importer_v1", 1)
[1604604020.618542] <- [email protected](23, "zwp_linux_dmabuf_v1", 3)
[1604604020.618569] <- [email protected](24, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[1604604020.618628] <- [email protected](25, "zwp_text_input_manager_v3", 1)
[1604604020.618678] <- [email protected](26, "gtk_text_input_manager", 1)
[1604604020.618730] <- [email protected](1739)
[1604604020.618789] -> [email protected](18, "wl_seat", 5, 3)
[1604604020.618831] -> [email protected]_keyboard(4)
[1604604020.618853] -> [email protected]_pointer(5)
[1604604020.619123] -> [email protected](2, "wl_compositor", 4, 6)
[1604604020.619168] -> [email protected](3, "wl_shm", 1, 7)
[1604604020.619203] -> [email protected]_surface(8)
[1604604020.619245] -> [email protected]_pool(9, 7, 1920000)
[1604604020.619278] -> [email protected]_buffer(10, 0, 800, 600, 3200, 1)
[1604604020.636476] -> [email protected](11, "xdg_wm_base", 1, 11)
[1604604020.636561] -> [email protected]_xdg_surface(12, 8)
[1604604020.636596] -> [email protected]_toplevel(13)
Failed to create server-side surface decoration: Missing
[1604604020.636626] -> [email protected]()
[1604604020.636648] -> [email protected](14)
[1604604020.638806] <- [email protected]_id(14)
[1604604020.638853] <- [email protected](1, 8, 52842)
[1604604020.638893] <- [email protected]_info(33, 500)
[1604604020.638929] <- [email protected](66)
[1604604020.638949] -> [email protected]_configure(66)
[1604604020.638970] -> [email protected]()
[1604604020.638988] <- [email protected](1739)
[1604604020.639027] -> [email protected](10, 0, 0)
[1604604020.639051] -> [email protected](0, 0, 2147483647, 2147483647)
[1604604020.639072] -> [email protected]()
[1604604020.639136] -> [email protected]_pool(14, 10, 1024)
[1604604020.639169] -> [email protected]_surface(15)
[1604604020.639291] -> [email protected]_title("Window")
[1604604020.673760] -> [email protected]_pool(16, 9, 1920000)
[1604604020.673829] -> [email protected]_buffer(17, 0, 800, 600, 3200, 1)
[1604604020.674683] -> [email protected](17, 0, 0)
[1604604020.674734] -> [email protected](0, 0, 2147483647, 2147483647)
[1604604020.674766] -> [email protected]()
[1604604020.678512] <- [email protected]()
[1604604020.678539] <- [email protected]()
[1604604020.681444] -> [email protected](17, 0, 0)
[1604604020.681492] -> [email protected](0, 0, 2147483647, 2147483647)
[1604604020.681511] -> [email protected]()
[1604604020.683957] <- [email protected](800, 600, [4, 0, 0, 0])
[1604604020.684008] <- [email protected](67)
[1604604020.684035] <- [email protected](1741, 0, 0, 16, 0)
[1604604020.684073] <- [email protected](1741, 8, [])
[1604604020.697978] -> [email protected]_configure(67)
[1604604020.698046] -> [email protected](17, 0, 0)
[1604604020.698074] -> [email protected](0, 0, 2147483647, 2147483647)
[1604604020.698097] -> [email protected]()
[1604604020.698209] <- [email protected]()
[1604604020.714811] -> [email protected](17, 0, 0)
[1604604020.714883] -> [email protected](0, 0, 2147483647, 2147483647)
[1604604020.714912] -> [email protected]()
[1604604020.715009] <- [email protected]()
[...]

I'm not sure whether this may be an upstream issue of Smithay/wayland-rs; I've found no related issues.

@emoon
Copy link
Owner

emoon commented Nov 6, 2020

Hey @nifker any idea about this one?

@nyovaya
Copy link
Contributor

nyovaya commented Nov 12, 2020

@emoon @mvforell
It uses the ZxdgDecorationManagerV1 protocol(which looks like gnome doesnt support) for the decoration but I dont know if others exist.
Seems like the default pointer_visibility is for some reason false. We need to change that value.

@mvforell
Copy link
Contributor Author

It seems GNOME doesn't support Server Side Decorations: https://drewdevault.com/2018/01/27/Sway-and-client-side-decorations.html.

@nyovaya
Copy link
Contributor

nyovaya commented Nov 13, 2020

@mvforell You say sway doesnt draw serve-side decorations onto the window?

@mvforell
Copy link
Contributor Author

My bad, I forgot that I disabled window borders in sway. If I reenable them, the window has a titlebar with the correct window title. I only thought this was an issue because the window also had no decorations in GNOME; but now I know that's GNOME's fault and not rust_minifb's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants