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

CursorStyle: fix panframe cursors #887

Merged
merged 1 commit into from Sep 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 13 additions & 7 deletions fvwm/cursor.c
Expand Up @@ -126,7 +126,7 @@ void CMD_CursorStyle(F_CMD_ARGS)
int my_nc;
FvwmWindow *fw2;
Cursor cursor;
struct monitor *m = monitor_get_current();
struct monitor *m = NULL;

cursor = 0;
cname = PeekToken(action, &action);
Expand Down Expand Up @@ -416,12 +416,18 @@ void CMD_CursorStyle(F_CMD_ARGS)
/* Do the menus for good measure */
SetMenuCursor(Scr.FvwmCursors[CRS_MENU]);

SafeDefineCursor(m->PanFrameTop.win, Scr.FvwmCursors[CRS_TOP_EDGE]);
SafeDefineCursor(
m->PanFrameBottom.win, Scr.FvwmCursors[CRS_BOTTOM_EDGE]);
SafeDefineCursor(m->PanFrameLeft.win, Scr.FvwmCursors[CRS_LEFT_EDGE]);
SafeDefineCursor(
m->PanFrameRight.win, Scr.FvwmCursors[CRS_RIGHT_EDGE]);
/* Set the cursors on all monitors. */
TAILQ_FOREACH(m, &monitor_q, entry) {
SafeDefineCursor(m->PanFrameTop.win,
Scr.FvwmCursors[CRS_TOP_EDGE]);
SafeDefineCursor(m->PanFrameBottom.win,
Scr.FvwmCursors[CRS_BOTTOM_EDGE]);
SafeDefineCursor(m->PanFrameLeft.win,
Scr.FvwmCursors[CRS_LEFT_EDGE]);
SafeDefineCursor(
m->PanFrameRight.win,
Scr.FvwmCursors[CRS_RIGHT_EDGE]);
}
/* migo (04/Nov/1999): don't annoy users which use xsetroot */
if (index == CRS_ROOT)
{
Expand Down