Commit Graph

9 Commits

Author SHA1 Message Date
bakkeby
f58c699dbb Fix for dwm randomly crashing when the first systray application starts
The crash error was:

dwm: fatal error: request code=12, error code=11
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Serial number of failed request:  3333
  Current serial number in output stream:  3338

This was backtracked to function updatesystray where XConfigureWindow was
called with large negative X positions (e.g. -836585). The large number
coming from the width of the systray icon.

w += i->w;

The systray icon width is set through the updatesystrayicongeom function
and this is called by resizerequest, clientmessage and propertynotify.

The height and width would appear to come from the X window attributes and
sometimes have random values (e.g. height 32708 and width 1369918222).

updatesystrayicongeom restricts the height of the icon to that of the bar,
but did not have any restictions on the icon width. This fix limits the
icon width to that of the bar height if it is greater than twice the bar
height, leaving room for systray icons that are slightly wider than they
are tall.
2020-07-05 13:20:28 +02:00
bakkeby
8120e0b858 Fixed a dwmblocks / statuscmd / systray compatibility issue where button clicks would be misaligned if systray pinning is used and systray is on another monitor 2020-07-01 16:16:19 +02:00
bakkeby
39df3ca2ec Replacing SchemeSel background for systray with that of SchemeNorm 2020-03-22 19:39:08 +01:00
bakkeby
9344ff61dd Alternative fix which is more in line with the original diff, ref. #18 2020-03-22 11:09:47 +01:00
bakkeby
f401a51fa8 Fix broken client when using systray without the alpha patch, ref. #18 2020-03-22 10:55:43 +01:00
bakkeby
8cb609fa1e Fix for systray flickering ref. #9 2020-02-09 15:17:05 +01:00
bakkeby
ecd64a9769 Fix systray position when barpadding patch is enabled, ref. #9 2020-02-09 13:04:28 +01:00
bakkeby
5d33aebaaf Adding float border color patch 2019-09-11 00:51:37 +02:00
bakkeby
cba0991170 Adding systray patch 2019-09-05 22:10:00 +02:00