1 Commits

Author SHA1 Message Date
A Frederick Christensen 535c2d39c0 Force cursor shape update after move/resize client 2025-08-14 20:03:14 -05:00
2 changed files with 16 additions and 12 deletions
+11 -10
View File
@@ -20,9 +20,10 @@ static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You ca
/* logging */ /* logging */
static int log_level = WLR_ERROR; static int log_level = WLR_ERROR;
/* AT LEAST ONE rule must exist. Define at least an EXAMPLE rule here. */ /* NOTE: ALWAYS keep a rule declared even if you don't use rules (e.g leave at least one example) */
static const Rule rules[] = { static const Rule rules[] = {
/* app_id title tags mask isfloating monitor */ /* app_id title tags mask isfloating monitor */
/* examples: */
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */ { "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
{ "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */ { "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */
}; };
@@ -36,18 +37,18 @@ static const Layout layouts[] = {
}; };
/* monitors */ /* monitors */
/* /* (x=-1, y=-1) is reserved as an "autoconfigure" monitor position indicator
* (x=-1, y=-1) causes a monitor to "autoconfigure" its position * WARNING: negative values other than (-1, -1) cause problems with Xwayland clients
* * https://gitlab.freedesktop.org/xorg/xserver/-/issues/899
* WARNING: Due to https://gitlab.freedesktop.org/xorg/xserver/-/issues/899 */
* negative monitor positions other than (-1, -1) create problems for Xwayland /* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */
* clients
*
* AT LEAST ONE monitor rule must exist. Define at least a NULL default rule here. */
static const MonitorRule monrules[] = { static const MonitorRule monrules[] = {
/* name mfact nmaster scale layout rotate/reflect x y */ /* name mfact nmaster scale layout rotate/reflect x y */
/* example of a HiDPI laptop monitor:
{ "eDP-1", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
*/
/* defaults */
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 }, { NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
{ "eDP-1_EXAMPLE", 0.5f, 1, 2, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
}; };
/* keyboard */ /* keyboard */
+3
View File
@@ -661,6 +661,9 @@ buttonpress(struct wl_listener *listener, void *data)
selmon = xytomon(cursor->x, cursor->y); selmon = xytomon(cursor->x, cursor->y);
setmon(grabc, selmon, 0); setmon(grabc, selmon, 0);
grabc = NULL; grabc = NULL;
/* Force update to cursor shape */
xytonode(cursor->x, cursor->y, NULL, &c, NULL, NULL, NULL);
focusclient(c, 1);
return; return;
} }
cursor_mode = CurNormal; cursor_mode = CurNormal;