[PATCH] Monitor objects per monitor-index

Florian Bruhin me at the-compiler.org
Sun Oct 6 01:40:32 CEST 2013


* Thorsten Wißmann <edu at thorsten-wissmann.de> [2013-06-24 13:03:32 +0200]:
> On Thu, Jun 20, 2013 at 10:40:17PM +0200, Florian Bruhin wrote:
> > This patch adds monitor objects to be able to access them by their
> > index if they are unnamed.
> 
> Did you forget to add some hunks in the patch? Because this only adds a
> link when a new monitor is added and never renames them.
> [...]

This should now all be fixed in the attached new patch. Tested it by
adding and removing a few monitors and it works so far. It unlinks and
re-links all id objects when a monitor is removed, as discussed in
IRC.

Also, the second patch uses the new monitor_foreach function for
all_monitors_apply_layout as well.

Florian

-- 
() ascii ribbon campaign - stop html mail    www.asciiribbon.org
/\ www.the-compiler.org  | I love long mails http://email.is-not-s.ms/
What this country needs is a good five cent microcomputer. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-objects-monitors.-to-access-monitors-per-id.patch
Type: text/x-diff
Size: 2497 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131006/19e14079/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-monitors_foreach-for-all_monitors_apply_layout.patch
Type: text/x-diff
Size: 752 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131006/19e14079/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/hlwm/attachments/20131006/19e14079/attachment.sig>


More information about the hlwm mailing list