2
0
mirror of https://github.com/bakkeby/patches synced 2024-11-02 03:40:24 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
bakkeby
02f862f6f7 Removing top level diff, i.e. [PATCH 1/2], from patches 2020-07-20 08:20:32 +02:00
bakkeby
2a24349278 alpha-systray: systray window was not fully transparent 2020-07-17 21:43:49 +02:00
bakkeby
bfe371fb17 alpha-systray: systray window was not fully transparent 2020-07-17 19:01:22 +02:00
bakkeby
ee81c6572d 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 14:13:16 +02:00
bakkeby
d3307b7ccb Rebased against 6.2 (was c82db690cc0c4624dad4dc6ae899020799ec84db) 2020-05-01 22:54:26 +02:00
bakkeby
b89b2bec54 Adding systray on top of alpha 2020-04-07 10:55:33 +02:00