!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

213 Members
57 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Sep 2024
@k900:0upti.meK900
In reply to @ilya-fedin:matrix.org

Do you mean make it look at XDG_DATA_DIRS or make it to look into index.theme?

As per https://gitlab.gnome.org/GNOME/gtk/-/issues/5388 discusison it seems they have no interest in either but getting the former should be easy (basically call get_cursor_theme recursively with default as theme name before the last wl_cursor_theme_create fallback, with strcmp(name, "default") condtion).

The latter requires implementing cursor theme merging in gtk as it basically lacks it, they extracted only very minimalistic part they need from wayland-cursor.

Amazing
14:17:51
@k900:0upti.meK900Maybe we can just get some of the GNOME people to deal with this 14:19:09
@k900:0upti.meK900Because I can't 14:19:17
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπšgtk4 also uses custom built-in fallback cursor than gtk3. As gtk3 uses wayland-cursor, it provides the last fallback which it apparently took from xcursor, given that it has lots of functions with the same name as in libxcursor and those cursors are the same as X11 applications have in this situation (that tiny cursor I uploaded in screenshot). gtk4, it seems, didn't copy that code from wayland-cursor, it has its own builtin fallback pixmap. It seems to be the default (left_ptr) cursor from Adwaita. It can properly scale it (or maybe almost, it's of the right size but looks blurry) which is avantage but wayland-cursor seem to have not only the default cursor but also the hand cursor at least which is disadvantage. Thus I had a trouble resizing gtk4 windows while testing it with GDK_DEBUG=portals.14:32:35
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπšmeh, I have a very big trouble connecting to matrix and Element doesn't seem to even have proxy setitngs πŸ™ˆ14:33:04
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπš
In reply to @k900:0upti.me
Because I can't
That could be really easily be solved by symlinking... I honestly don't really undertstand what's the problem with runCommand given that e.g. fonts module uses it: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/fonts/fontdir.nix
14:34:23
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπš
In reply to @k900:0upti.me
Because I can't
* That could be really easily solved by symlinking... I honestly don't really undertstand what's the problem with runCommand given that e.g. fonts module uses it: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/fonts/fontdir.nix
14:36:08
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπš * That could be really easily solved by symlinking... I honestly don't really understand what's the problem with runCommand given that e.g. fonts module uses it: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/fonts/fontdir.nix 14:36:21
@k900:0upti.meK900
In reply to @ilya-fedin:matrix.org
That could be really easily solved by symlinking... I honestly don't really understand what's the problem with runCommand given that e.g. fonts module uses it: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/config/fonts/fontdir.nix
But it won't be solved by symlinking
14:54:05
@k900:0upti.meK900If the path is hardcoded14:54:10
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπš
In reply to @k900:0upti.me
If the path is hardcoded
the path problem is of two lines patch at least
15:05:06
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπš
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 73e9af0246..13066e7cc0 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -1131,6 +1131,9 @@ get_cursor_theme (GdkWaylandDisplay *display_wayland,
         return theme;
     }
 
+  if (strcmp(name, "default"))
+    return get_cursor_theme (display_wayland, "default", size);
+
   /* This may fall back to builtin cursors */
   return wl_cursor_theme_create ("/usr/share/icons/default/cursors", size, display_wayland->shm);
 }
17:52:09
30 Sep 2024
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπšhttps://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7766 https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/776709:30:03
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπšmerged15:07:53
@k900:0upti.meK900Wow those folks are fast15:27:37
@ilya-fedin:matrix.orgπ™Όπš›. π™±πš˜πš πš•πšŽπš› πš π™·πšŠπšmuch faster than qt's gerrit xd15:53:28
1 Oct 2024
@-_o:matrix.org-_o joined the room.20:59:57
3 Oct 2024
@outfoxxed:outfoxxed.meoutfoxxed

@k900:0upti.me just checking in on the pr again since its been about a month now and I'm going to need it somewhat soon

21:14:18
@outfoxxed:outfoxxed.meoutfoxxed *

@k900:0upti.me just checking in on the caching pr again since its been about a month now and I'm going to need it somewhat soon

21:14:38
@k900:0upti.meK900It's on the stack21:15:05
@k900:0upti.meK900I'm sorry21:15:07
@k900:0upti.meK900A lot of things going on at the same time21:15:14
@outfoxxed:outfoxxed.meoutfoxxedAlright just want to make sure it does actually happen at some point21:18:02
5 Oct 2024
@k900:0upti.meK900 @outfoxxed finally got around to the patch 07:58:41
@k900:0upti.meK900It's mostly nits in the current state07:58:46
@k900:0upti.meK900But also07:58:47
@k900:0upti.meK9006.8 is going to fuck up this entire code07:59:06
@k900:0upti.meK9006.8 is also, uh, on Tuesday07:59:27

Show newer messages


Back to Room ListRoom Version: 9