-
Notifications
You must be signed in to change notification settings - Fork 137
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
All black mouse cursor #513
Comments
That's strange. Might it have to do with your theme? Please, use M-x list-faces-display and have a look at the Other than that, I don't think EXWM meddles with the mouse cursor in any way. |
I haven't configured the face of my mouse cursor. Here it is:
Face: mouse (sample) (customize this face)
Documentation:
Basic face for the mouse color under X.
Defined in ‘faces.el’.
Family: unspecified
Foundry: unspecified
Width: unspecified
Height: unspecified
Weight: unspecified
Slant: unspecified
Foreground: unspecified
DistantForeground: unspecified
Background: unspecified
Underline: unspecified
Overline: unspecified
Strike-through: unspecified
Box: unspecified
Inverse: unspecified
Stipple: unspecified
Font: unspecified
Fontset: unspecified
Inherit: unspecified
|
Hm. I'm at a loss. I suggest you to try the following: a) Change the b) Have a look at the instructions in https://wiki.archlinux.org/index.php/Cursor_themes, (in particular https://wiki.archlinux.org/index.php/Cursor_themes#Change_X_shaped_default_cursor). c) Try other simple tiling window manager (e.g., awesome mentioned in the |
I tried a few things:
For now I'll settle with (set-face-background 'mouse "#777777") in my Emacs configuration. That'll do, although I wish I could have changed the mouse contour color :/ |
@Ambrevar Is EXWM running on a GTK3 build of Emacs? You can check this with M-x emacs-version. |
I tried with both Athena and GTK3: same thing. |
Cursor is an attribute of X windows and fallback to use parent's when absent. If |
That's what I had tried when I mentioned that On Emacs, it's all black. |
Unfortunately there seems to be no way to check which cursor an X window is using. The only relevant code in EXWM that is involved in modifying cursor is moving/resizing an X window (just a temporary cursor set with the |
I seem to have the same issue. However, I only get a black cursor on higher exwm workspaces:
It looks like X11 settings are not initialized correctly when new workspaces are started. Hope this helps debugging the issue. |
@mnick Do you have any special setting related to X cursor? Workspace frames are created with |
@mnick:
Let me know if something's not clear or you find difficulties. |
Unlike @mnick I only ever use one workspace, and the cursor is all black
by default in workspace 0.
|
@Ambrevar, thanks for the info. Please, post the results I asked @mnick, in case it sheds some light. One can get an all-black mouse pointer evaluating this snippet: ;; The `mouse-color` frame parameter determines the pointer foreground, the
;; `background-color` determines the pointer background. When those are the same,
;; the background color of the pointer is taken from `foreground-color`.
(let ((frame (make-frame '((background-color . "black")
(foreground-color . "black")
(mouse-color . "black")))))
;; Restore back/foreground.
(set-frame-parameter frame 'background-color "white")
(set-frame-parameter frame 'foreground-color "black")) Does that ring a bell? @Ambrevar, @mnick: Could you also have a look at your |
I don't use custom.el.
I use desktop.el, but there is nothing regarding mouse-color or frame faces.
|
I didn't notice when it changed, but now that you mention it, you are
right, the cursor is no longer all black for me!
Any idea what fixed it?
|
No clue :-). I'd say something in your environment (?). I'm closing the ticket, please reopen if it happens again. |
I don't remember if this always was an issue, but now I'm a little annoyed by the mouse cursor: it's all black (contour as well), so it's very hard to see on my black-backgrounded Emacs buffers.
Note as soon as the mouse hovers over X windows (i.e. not Emacs buffers) then the cursor becomes "normal", that is, black with a white contour.
If I start Emacs without EXWM, the mouse cursor is also normal.
I don't have any specific configuration regarding the mouse cursor.
The text was updated successfully, but these errors were encountered: