ignorantguru / spacefm-wayland Goto Github PK
View Code? Open in Web Editor NEWTemporary repository for wayland support - see spacefm issue 412
Home Page: https://github.com/IgnorantGuru/spacefm/issues/412
License: GNU General Public License v3.0
Temporary repository for wayland support - see spacefm issue 412
Home Page: https://github.com/IgnorantGuru/spacefm/issues/412
License: GNU General Public License v3.0
I use sway on wayland in gentoo iget this error...this are the steps i follow
1 downloaded the repo
2 configure with ./configure --with-gtk3
3 make -s and then i get this error:
main.c: In function 'receive_socket_command':
main.c:586:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
586 | write( client, &cmd, sizeof(char) ); // send exit status
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:588:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
588 | write( client, reply, strlen( reply ) ); // send reply or error msg
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'send_socket_command':
main.c:629:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
629 | write( sock, &cmd, sizeof(char) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:633:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
633 | write( sock, inode_tag, strlen( inode_tag ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:634:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
634 | write( sock, "\n", 1 );
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:641:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
641 | write( sock, argv[i], strlen( argv[i] ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:642:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
642 | write( sock, "\n", 1 );
| ^~~~~~~~~~~~~~~~~~~~~~
main.c:644:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
644 | write( sock, "\n", 1 );
| ^~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'single_instance_check':
main.c:394:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
394 | write( sock, &cmd, sizeof(char) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:401:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
401 | write( sock, &cmd, sizeof(char) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:435:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
435 | write( sock, &cmd, sizeof(char) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:439:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
439 | write( sock, &cmd, sizeof(char) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:458:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
458 | write( sock, real_path, strlen( real_path ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:460:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
460 | write( sock, "\n", 1 );
| ^~~~~~~~~~~~~~~~~~~~~~
main.c: In function 'dup_to_absolute_file_path':
main.c:1048:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' -Wunused-result]
1048 | getcwd( cwd_path, cwd_size );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [Makefile:1553: spacefm-main.o] Error 1
make: *** [Makefile:467: all-recursive] Error 1
someone knows how to resolve this?
On the Wayland compile the menu bar does not work. Clicking on any of the icons for the menus simply does nothing.
On the Wayland build these messages appear when starting:
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
** (spacefm:7443): WARNING **: No root settings found in /etc/spacefm/ Setting a root editor in Preferences should remove this warning on startup. Otherwise commands run as root may present a security risk.
(spacefm:7443): Gdk-WARNING **: gdkcursor-wayland.c:144: Unable to load sb_v_double_arror from the cursor theme
(spacefm:7443): Gdk-WARNING **: gdkcursor-wayland.c:144: Unable to load sb_h_double_arror from the cursor theme
(spacefm:7443): Gdk-WARNING **: gdkcursor-wayland.c:144: Unable to load dnd-copy from the cursor theme
These messages appear when closing:
(spacefm:7443): Gdk-CRITICAL **: _gdk_frame_clock_thaw: assertion 'GDK_IS_FRAME_CLOCK (clock)' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_frame_clock_get_timings: assertion 'GDK_IS_FRAME_CLOCK (frame_clock)' failed
It looks like the cursor warnings would be fixed once I get a theme working correctly under Wayland, which is on my TODO list.
On the Wayland compile the right click menus do not work. Right clicking anywhere simply does nothing.
On the Wayland compile the drag bars within and between panes do not appear visually and do not work. The bar appears as a blank grey bar of the proper size, but does not have the drag bar graphic on it. Trying to click and drag neither allows dragging, nor makes the pointer cursor change to a drag cursor.
On the Wayland compile drag and drop allows you to "pick up" a file icon, but does not allow you to move it properly. This could be because a new window seems to be created for the dragged icon (it shows up in my taskbar). In Wayland windows don't get to know about each other, and if a window loses focus it does not get to know about the position of the cursor. I think maybe when the icon window is created, the parent window loses focus and then can no longer track the cursor to see where you are dragging the icon. Or it could just be the code that was removed to make it compile. This is what stderr shows:
(spacefm:7443): Gdk-CRITICAL **: gdk_window_get_screen:: assertion 'GDK_IS_WINDOW (window)' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_window_get_screen:: assertion 'GDK_IS_SCREEN (screen)' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_display_supports_cursor_color: assertion 'GDK_IS_DISPLAY (display)' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_drag_get_selection: assertion 'context->source_window != NULL' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_drag_get_selection: assertion 'context->source_window != NULL' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_drag_get_selection: assertion 'context->source_window != NULL' failed
(spacefm:7443): Gdk-CRITICAL **: gdk_drag_get_selection: assertion 'context->source_window != NULL' failed
[last entry repeats many more times]
Currently the code to compile without X11 support is just a check to see if GDK_WINDOWING_X11 is defined. Since this is not defined anyware AFAIK, the spacefm-wayland branch will always compile without X11 support. Support for turning this on and off needs to be added to configure. Also, according to the GTK3 manual, there should be a runtime check as well, so that a GUI can detect whether it is running under X11 or Wayland, and change the calls that it makes:
https://developer.gnome.org/gdk3/stable/gdk3-Wayland-Interaction.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.