"dock.c", line 1093
That line is inside wDockCreate(), and I think it makes sense to
restrict the number of dockapps based on the screen size when
_creating_ the dock, right?
I think the issue you have is related to the event of _restoring_ the
dock upon resolution change, look at wDockRestoreState().
And now it does not make sense to change the state of the dock
if we are _restoring_ it. So the fix should deal with this case
instead.
The first thing "wDockRestoreState" does is call "wDockCreate".
Actually, that's the only place "wDockCreate" is called.
Near the end of "wDockRestoreState", line 1760, is where icons are
removed from the dock if they don't fit. The patch I made increases the
size of "dock->max_icons" to prevent them from being removed.
...even so, I don't understand too much about how the dock is created
and restored yet.
However, I think the optimal fix fix would deal with the xrandr code
and make wmaker aware that the screen changed without the drastic
measure of Restart()...
I know, I know, I'm still trying to do that but it's trickier than I
thought it would be. For now, I just wanted a way to plug my computer
into my TV to watch Doctor Who without losing my docked applications. :D
--
To unsubscribe, send mail to [email protected].