-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
no border patch causes weird gimp interaction #379
Comments
Maybe. Could you try with these changes? diff --git a/dwm.c b/dwm.c
index 7497c65..20b9a7a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1455,6 +1455,35 @@ configure(Client *c)
ce.width = c->w;
ce.height = c->h;
ce.border_width = c->bw;
+ #if NOBORDER_PATCH
+ if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
+ #if MONOCLE_LAYOUT
+ || &monocle == c->mon->lt[c->mon->sellt]->arrange
+ #endif // MONOCLE_LAYOUT
+ #if DECK_LAYOUT
+ || (&deck == c->mon->lt[c->mon->sellt]->arrange &&
+ c->mon->nmaster == 0)
+ #endif // DECK_LAYOUT
+ #if FLEXTILE_DELUXE_LAYOUT
+ || (&flextile == c->mon->lt[c->mon->sellt]->arrange && (
+ (c->mon->ltaxis[LAYOUT] == NO_SPLIT &&
+ c->mon->ltaxis[MASTER] == MONOCLE) ||
+ (c->mon->ltaxis[STACK] == MONOCLE &&
+ c->mon->nmaster == 0)))
+ #endif //FLEXTILE_DELUXE_LAYOUT
+ )
+ #if FAKEFULLSCREEN_CLIENT_PATCH && !FAKEFULLSCREEN_PATCH
+ && (c->fakefullscreen == 1 || !c->isfullscreen)
+ #else
+ && !c->isfullscreen
+ #endif // FAKEFULLSCREEN_CLIENT_PATCH
+ && !c->isfloating
+ && c->mon->lt[c->mon->sellt]->arrange) {
+ ce.width += c->bw * 2;
+ ce.height += c->bw * 2;
+ ce.border_width = 0;
+ }
+ #endif // NOBORDER_PATCH
ce.above = None;
ce.override_redirect = False;
XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); The idea is that the same changes that are applied in |
Thanks adding that fixed it. Krita also seemed to have that very same issue and it got fixed as well (i guess for any apps that show a splash screen first) just curious what does the function |
Ah i've noticed a small side affect, it trims the edges of the windows the fix seems to be switching to another tag and switching back (doesn't work all the time) this is how i positioned the code:
|
Hi @Zerogaku, can you try removing these two lines: ce.width += c->bw * 2;
ce.height += c->bw * 2; I see that the border width is already added to |
|
OK, thanks for checking. Sounds like it may be a picom issue, what version are you using? |
the picom version is vgit-751f3 which i believe is the latest version, but this issue also occurs with xcompmgr so this might be a generic compositor issue or dwm |
To be fair the noborder patch is notorious for creating weird side effects. |
hi this is a pretty specific and unimportant issue but, when having gimp open on a separate empty tag and swapping to it, the tag displays the same content as the previous tag. Gimp is present just can't display correctly, only when closing and opening it again, or opening it on a tag that has 1 or more windows, this happens when a compositor is enabled for some reason, i've tried both xcompmgr and picom, the issue only goes away when no border patch is disabled. is there a fix for this?
gimp opens in tag 5:
swap to tag 5 to find gimp "invisible":
when trying to interact with the gimp window
The text was updated successfully, but these errors were encountered: