Skip to content

Commit

Permalink
Fix shadows on certain non-solid windows.
Browse files Browse the repository at this point in the history
s. xcompmgr's commit 5a7d139f (2012-08-11).
  • Loading branch information
tycho-kirchner committed Nov 26, 2024
1 parent 6332999 commit 3c61549
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fastcompmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,11 @@ paint_all(Display *dpy, XserverRegion region) {

if (w->mode != WINDOW_SOLID || HAS_FRAME_OPACITY(w)) {
int x, y, wid, hei;
// 2024-11-26: Without the next two lines, the Microsoft-Teams screen-share
// window has a broken frame instead of a shadow, with a "startup-frozen"
// picture. Inspired by xcompmgr's commit 5a7d139f (2012-08-11).
XFixesIntersectRegion(dpy, w->border_clip, w->border_clip, w->border_size);
XFixesSetPictureClipRegion(dpy, root_buffer, 0, 0, w->border_clip);

#if HAS_NAME_WINDOW_PIXMAP
x = w->a.x;
Expand Down

0 comments on commit 3c61549

Please sign in to comment.