Skip to content

Commit

Permalink
CursorStyle: fix panframe cursors
Browse files Browse the repository at this point in the history
When setting the cursors on panframes, do so for all monitors.

Fixes #851
  • Loading branch information
ThomasAdam committed Sep 3, 2023
1 parent c9d0018 commit e6daace
Showing 1 changed file with 13 additions and 7 deletions.
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

0 comments on commit e6daace

Please sign in to comment.