-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature request] Use left_ptr_watch
for a startup notification
#3737
Comments
Use "left_ptr" without the C patch? |
That's what I did at first, but it does not work. It would still show just the It actually shows |
But "left_ptr_watch" in your patch is |
I used Openbox code as a reference, here both of them are $ rg -p "left_ptr" -uuu *
openbox.c
203: cursors[OB_CURSOR_POINTER] = load_cursor("left_ptr", XC_left_ptr);
204: cursors[OB_CURSOR_BUSYPOINTER] = load_cursor("left_ptr_watch",XC_left_ptr);
No, there is not. |
So "left_ptr" == "left_ptr_watch". You don't need a C patch, just use "left_ptr" and be done with it? |
I'm not sure I understand. EDIT: Oh, if you mean replace "watch" with just "left_ptr", well, it's not that "watch" cursor annoys me that much, so I rather just leave it alone. |
|
Then why does so many (all?) cursor themes have the file named If it's just an alias, why does Openbox show the cursor on right, not the one on the left, as a startup notification (see screenshot)? $ pacman -Ql oxygen | grep left_ptr_watch
oxygen /usr/share/icons/KDE_Classic/cursors/left_ptr_watch
oxygen /usr/share/icons/Oxygen_Black/cursors/left_ptr_watch
oxygen /usr/share/icons/Oxygen_Blue/cursors/left_ptr_watch
oxygen /usr/share/icons/Oxygen_White/cursors/left_ptr_watch
oxygen /usr/share/icons/Oxygen_Yellow/cursors/left_ptr_watch
oxygen /usr/share/icons/Oxygen_Zion/cursors/left_ptr_watch
$ pacman -Ql breeze | grep left_ptr_watch
breeze /usr/share/icons/Breeze_Snow/cursors/left_ptr_watch
breeze /usr/share/icons/breeze_cursors/cursors/left_ptr_watch
$ pacman -Ql xcursor-themes | grep left_ptr_watch
xcursor-themes /usr/share/icons/handhelds/cursors/left_ptr_watch
xcursor-themes /usr/share/icons/redglass/cursors/left_ptr_watch
xcursor-themes /usr/share/icons/whiteglass/cursors/left_ptr_watch
$ pacman -Ql capitaine-cursors | grep left_ptr_watch
capitaine-cursors /usr/share/icons/capitaine-cursors-light/cursors/left_ptr_watch
capitaine-cursors /usr/share/icons/capitaine-cursors/cursors/left_ptr_watch
$ pacman -Ql fuchsia-cursor | grep left_ptr_watch
fuchsia-cursor-theme-bin /usr/share/icons/Fuchsia-Pop/cursors/left_ptr_watch
fuchsia-cursor-theme-bin /usr/share/icons/Fuchsia-Red/cursors/left_ptr_watch
fuchsia-cursor-theme-bin /usr/share/icons/Fuchsia/cursors/left_ptr_watch
I'm clearly missing something. How do you suggest to use it? |
What exactly do you mean? What does it duplicate? I looked at Looking at the code in AwesomeWM, "everything" basically only ever does The only complication would be that some other caching mechanism than the current array would be needed, but that seems doable. Some data structure that maps a string to xcb_cursor_t can surely be implemented with the existing |
@psychon The The [XC_left_ptr] = "left_ptr", already exists, so it [XC_left_ptr] = "left_ptr_watch", So, in theory, instead of plain EDIT: It also breaks some other things, like hovering panel gets you a diagonal cross - I think to fix this the table should be rewritten (if it's a table?), so that some other custom names would be assigned to both You can see that it's exactly what they did in openbox #3737 (comment): assigned custom name Here's the warning at a build time: ...
[ 15%] Building C object CMakeFiles/awesome.dir/common/version.c.o
[ 15%] Generating raw_images/AUTOGEN_wibox_widget_piechart_border_width.svg
[ 15%] Building C object CMakeFiles/awesome.dir/common/xcursor.c.o
/home/user/awesome/src/build/common/xcursor.c:104:21: warning: initialized field overwritten [-Woverride-init]
104 | [XC_left_ptr] = "left_ptr_watch",
| ^~~~~~~~~~~~~~~~
/home/user/awesome/src/build/common/xcursor.c:104:21: note: (near initialization for ‘xcursor_font[68]’)
... |
Ah, thanks & sorry. Somehow I was thinking in quite a wrong direction here... |
Sure, no problem. |
Output of
awesome --version
:awesome v4.3-1551-g5077c8381-dirty (Too long)
Hello!
The reason for this is that I use Fuchsia cursor theme, and here is what
watch
vs.left_ptr_watch
look like:The latter one looks much more seamless to me.
I tried to patch it myself to submit a PR:
Click here
But nothing came out of it, because
XC_left_ptr
is a duplicate entry, and my knowledge is not enough to go any deeper.Just for reference, Openbox uses
left_ptr_watch
as well.Thanks!
The text was updated successfully, but these errors were encountered: