libwm, branch HEAD X windows manipulation library 9b2e6a117a5d89348d661e65a70ccf9ddab1b4ef 2021-09-09T09:33:43Z 2021-09-09T09:33:43Z Match monitors backware in wm_find_monitor() Willy Goiffon dev@z3bra.org commit 9b2e6a117a5d89348d661e65a70ccf9ddab1b4ef parent e399cf6a188e5663ebc9ce88f9da7621eee0e675 Author: Willy Goiffon <dev@z3bra.org> Date: Thu, 9 Sep 2021 11:33:43 +0200 Match monitors backware in wm_find_monitor() e399cf6a188e5663ebc9ce88f9da7621eee0e675 2021-09-07T11:39:41Z 2021-09-07T11:39:41Z Add ATTR_D attribute to retrieve window color depth Willy Goiffon dev@z3bra.org commit e399cf6a188e5663ebc9ce88f9da7621eee0e675 parent d10dc9ebb2ef7eaed2bc48331b50e808354beebb Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 7 Sep 2021 13:39:41 +0200 Add ATTR_D attribute to retrieve window color depth d10dc9ebb2ef7eaed2bc48331b50e808354beebb 2020-06-17T08:11:42Z 2020-06-17T08:19:10Z Add function to find a monitor from an absolute coordinate Willy Goiffon dev@z3bra.org commit d10dc9ebb2ef7eaed2bc48331b50e808354beebb parent 71c9d52b8c7f57d9078e83a4812689ecc885d4e7 Author: Willy Goiffon <dev@z3bra.org> Date: Wed, 17 Jun 2020 10:11:42 +0200 Add function to find a monitor from an absolute coordinate 71c9d52b8c7f57d9078e83a4812689ecc885d4e7 2020-06-16T14:53:57Z 2020-06-16T14:53:57Z Randr wrapper to retrieve a monitor info structure Willy Goiffon dev@z3bra.org commit 71c9d52b8c7f57d9078e83a4812689ecc885d4e7 parent 5730e9aad5fa689dc05aee3f0f44d3354bbd0041 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 16 Jun 2020 16:53:57 +0200 Randr wrapper to retrieve a monitor info structure 5730e9aad5fa689dc05aee3f0f44d3354bbd0041 2020-06-16T14:09:48Z 2020-06-16T14:09:48Z Add support for multi-monitor through Xrandr(3) Willy Goiffon dev@z3bra.org commit 5730e9aad5fa689dc05aee3f0f44d3354bbd0041 parent 9d0180e7638d3ed2aee875484219b43490f9cc36 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 16 Jun 2020 16:09:48 +0200 Add support for multi-monitor through Xrandr(3) 9d0180e7638d3ed2aee875484219b43490f9cc36 2020-06-08T14:04:35Z 2020-06-08T14:04:35Z wm_get_atom_name(): retrieve the name of an atom Willy Goiffon dev@z3bra.org commit 9d0180e7638d3ed2aee875484219b43490f9cc36 parent ad7ca51e05973a6ab131a102e5a813a09ecee585 Author: Willy Goiffon <dev@z3bra.org> Date: Mon, 8 Jun 2020 16:04:35 +0200 wm_get_atom_name(): retrieve the name of an atom ad7ca51e05973a6ab131a102e5a813a09ecee585 2020-06-07T15:46:05Z 2020-06-07T15:46:05Z Update README to reflect latest changes Willy Goiffon dev@z3bra.org commit ad7ca51e05973a6ab131a102e5a813a09ecee585 parent a8a3813cdad5563e3ca680420a5dcfef6ff2dbd6 Author: Willy Goiffon <dev@z3bra.org> Date: Sun, 7 Jun 2020 17:46:05 +0200 Update README to reflect latest changes a8a3813cdad5563e3ca680420a5dcfef6ff2dbd6 2020-06-06T09:36:07Z 2020-06-06T09:36:07Z Request 32 atoms (arbitrary) everytime in wm_get_atom() Willy Goiffon dev@z3bra.org commit a8a3813cdad5563e3ca680420a5dcfef6ff2dbd6 parent c05c8910d3e502415906c72a0b9f9758aa452816 Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 6 Jun 2020 11:36:07 +0200 Request 32 atoms (arbitrary) everytime in wm_get_atom() c05c8910d3e502415906c72a0b9f9758aa452816 2020-06-05T09:58:47Z 2020-06-05T09:58:47Z Remove unused parameter in wm_add_atom() Willy Goiffon dev@z3bra.org commit c05c8910d3e502415906c72a0b9f9758aa452816 parent 0400e78958e6c0914203a5a3eca042274020479b Author: Willy Goiffon <dev@z3bra.org> Date: Fri, 5 Jun 2020 11:58:47 +0200 Remove unused parameter in wm_add_atom() 0400e78958e6c0914203a5a3eca042274020479b 2019-10-31T15:05:54Z 2019-10-31T15:05:54Z Fix previously broken wm_restack() Willy Goiffon dev@z3bra.org commit 0400e78958e6c0914203a5a3eca042274020479b parent 61d8c057d116e7db273a6d8fa3237f5a76c75779 Author: Willy Goiffon <dev@z3bra.org> Date: Thu, 31 Oct 2019 16:05:54 +0100 Fix previously broken wm_restack() 61d8c057d116e7db273a6d8fa3237f5a76c75779 2019-10-31T10:44:51Z 2019-10-31T10:44:51Z Allow setting window border as ARGB values Willy Goiffon dev@z3bra.org commit 61d8c057d116e7db273a6d8fa3237f5a76c75779 parent a43614c6a4f9f8e59697ab76cab14407082a6bfc Author: Willy Goiffon <dev@z3bra.org> Date: Thu, 31 Oct 2019 11:44:51 +0100 Allow setting window border as ARGB values Border colors are represented as 32 bits integers, out of which the 2 first byte reprensent the alpha channel (in TrueColor mode, which we assume). When the very first bit is set (eg. 0x80123456), the signed integer representation would be a negative number. If we want to handle the alpha channel correctly, we cannot check the color value as an integer, and accept any value. The obvious advantage is that setting transparency now works as expected. The drawback being that if you only want to change the border size, you still have to set the border color. Deal with it :) a43614c6a4f9f8e59697ab76cab14407082a6bfc 2019-10-31T07:26:59Z 2019-10-31T07:26:59Z wm_set_atom(): return XCB error code in case of error Willy Goiffon dev@z3bra.org commit a43614c6a4f9f8e59697ab76cab14407082a6bfc parent 6feb73742a86509543be40d95e611c0a459f526c Author: Willy Goiffon <dev@z3bra.org> Date: Thu, 31 Oct 2019 08:26:59 +0100 wm_set_atom(): return XCB error code in case of error 6feb73742a86509543be40d95e611c0a459f526c 2019-10-28T18:13:14Z 2019-10-28T18:13:14Z Revert wm_restack() API change Willy Goiffon dev@z3bra.org commit 6feb73742a86509543be40d95e611c0a459f526c parent d9e5eeb099b33941fec3c257e5051cd5ce03da53 Author: Willy Goiffon <dev@z3bra.org> Date: Mon, 28 Oct 2019 19:13:14 +0100 Revert wm_restack() API change d9e5eeb099b33941fec3c257e5051cd5ce03da53 2019-10-28T17:44:30Z 2019-10-28T17:44:30Z Add functions to deal with window properties (atoms) Willy Goiffon dev@z3bra.org commit d9e5eeb099b33941fec3c257e5051cd5ce03da53 parent ead66d8b2d01d853ac9b27fa4bb6f6120433b71d Author: Willy Goiffon <dev@z3bra.org> Date: Mon, 28 Oct 2019 18:44:30 +0100 Add functions to deal with window properties (atoms) ead66d8b2d01d853ac9b27fa4bb6f6120433b71d 2019-10-26T11:09:24Z 2019-10-26T11:19:12Z Add function to register cursor events on a window Willy Goiffon dev@z3bra.org commit ead66d8b2d01d853ac9b27fa4bb6f6120433b71d parent de8f4882f68f284cce23d506144d0082eb8db054 Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 26 Oct 2019 13:09:24 +0200 Add function to register cursor events on a window This commit will also change the name of the wm_reg_event() to wm_reg_window_event() to differentiate event types. de8f4882f68f284cce23d506144d0082eb8db054 2019-10-26T10:10:06Z 2019-10-26T10:10:06Z Update wm.h header to match the return value changes Willy Goiffon dev@z3bra.org commit de8f4882f68f284cce23d506144d0082eb8db054 parent 5d4aa9b667289e24efc1313fbecefb96788ea93e Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 26 Oct 2019 12:10:06 +0200 Update wm.h header to match the return value changes 5d4aa9b667289e24efc1313fbecefb96788ea93e 2019-10-26T09:50:40Z 2019-10-26T10:00:20Z Change return values of functions for consistency Willy Goiffon dev@z3bra.org commit 5d4aa9b667289e24efc1313fbecefb96788ea93e parent 5d78292a0e2d5a329a279f6dabdc4da9c7df1996 Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 26 Oct 2019 11:50:40 +0200 Change return values of functions for consistency By default, all functions will return 0 on success, and a negative value on failure. Functions checking a window state (functions named `wm_is_*`) will return 1 on success and 0 on failure. This is for semantic reasons: if (wm_is_mapped(wid)) // do stuff Some functions have a return value that is not representative of the success of said function, and instead will return an item specific to their usage. 5d78292a0e2d5a329a279f6dabdc4da9c7df1996 2019-10-26T09:50:24Z 2019-10-26T09:50:24Z Move wm_is_listable() with other state-check functions Willy Goiffon dev@z3bra.org commit 5d78292a0e2d5a329a279f6dabdc4da9c7df1996 parent c1137a74cfbbaae29096475a4f631406cb338e43 Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 26 Oct 2019 11:50:24 +0200 Move wm_is_listable() with other state-check functions c1137a74cfbbaae29096475a4f631406cb338e43 2019-10-26T09:16:41Z 2019-10-26T09:16:41Z Unify window variable names amongst functions Willy Goiffon dev@z3bra.org commit c1137a74cfbbaae29096475a4f631406cb338e43 parent c92ee4ce0527c1983e6fef40fc43a43fde832f24 Author: Willy Goiffon <dev@z3bra.org> Date: Sat, 26 Oct 2019 11:16:41 +0200 Unify window variable names amongst functions c92ee4ce0527c1983e6fef40fc43a43fde832f24 2019-10-22T18:22:22Z 2019-10-22T18:22:22Z Change wm_reg_event() return values Willy Goiffon dev@z3bra.org commit c92ee4ce0527c1983e6fef40fc43a43fde832f24 parent 65e44403ff65e1c15b76b7be8c20021475d07c1c Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 22 Oct 2019 20:22:22 +0200 Change wm_reg_event() return values All other functions return 1 when there's no error... We were weird. 65e44403ff65e1c15b76b7be8c20021475d07c1c 2019-10-22T17:48:27Z 2019-10-22T17:53:44Z Handle errors in wm_reg_event() Willy Goiffon dev@z3bra.org commit 65e44403ff65e1c15b76b7be8c20021475d07c1c parent 246faeb2f14e0be097f3d7629830b469bd6bb7b8 Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 22 Oct 2019 19:48:27 +0200 Handle errors in wm_reg_event() 246faeb2f14e0be097f3d7629830b469bd6bb7b8 2019-10-22T16:04:39Z 2019-10-22T17:53:34Z Remove all internal calls to xcb_flush() Willy Goiffon dev@z3bra.org commit 246faeb2f14e0be097f3d7629830b469bd6bb7b8 parent 8af38ef59496889dc2bbbc7d43ebc888a055465b Author: Willy Goiffon <dev@z3bra.org> Date: Tue, 22 Oct 2019 18:04:39 +0200 Remove all internal calls to xcb_flush() This is the responsibility of the client to flush the connection, so that the library doesn't induce any latency. 8af38ef59496889dc2bbbc7d43ebc888a055465b 2016-10-06T11:29:54Z 2016-10-06T11:29:54Z Merge pull request #4 from Ferdi265/vanilla zebra v3.1 z3bratabs@users.noreply.github.com commit 8af38ef59496889dc2bbbc7d43ebc888a055465b parent 15d174927a115d9ce34b50c5cf9025cdc12f5cc4 Author: zebra v3.1 <z3bratabs@users.noreply.github.com> Date: Thu, 6 Oct 2016 13:29:54 +0200 Merge pull request #4 from Ferdi265/vanilla README: Revise spelling and update list of functions fefb116c49d00a9f911ceac988dd46aa187fd67e 2016-10-05T22:14:38Z 2016-10-05T22:14:38Z revert Markdown syntax change Ferdinand Bachmann theferdi265@gmail.com commit fefb116c49d00a9f911ceac988dd46aa187fd67e parent 494b84789b936c2804178074e8944e6abe918b97 Author: Ferdinand Bachmann <theferdi265@gmail.com> Date: Thu, 6 Oct 2016 00:14:38 +0200 revert Markdown syntax change 494b84789b936c2804178074e8944e6abe918b97 2016-10-04T08:44:42Z 2016-10-04T08:44:42Z README: C syntax highlighting and consistent shell snippets theFerdi265 theferdi265@gmail.com commit 494b84789b936c2804178074e8944e6abe918b97 parent ece2c328acd72459a705412f10f9d0dd9e4e2b00 Author: theFerdi265 <theferdi265@gmail.com> Date: Tue, 4 Oct 2016 10:44:42 +0200 README: C syntax highlighting and consistent shell snippets ece2c328acd72459a705412f10f9d0dd9e4e2b00 2016-10-04T08:25:05Z 2016-10-04T08:25:05Z README: update and reorder list of functions theFerdi265 theferdi265@gmail.com commit ece2c328acd72459a705412f10f9d0dd9e4e2b00 parent d5b5d3e316b28172d53299e2001d10267fd7916e Author: theFerdi265 <theferdi265@gmail.com> Date: Tue, 4 Oct 2016 10:25:05 +0200 README: update and reorder list of functions d5b5d3e316b28172d53299e2001d10267fd7916e 2016-10-04T08:16:51Z 2016-10-04T08:16:51Z Spelling theFerdi265 theferdi265@gmail.com commit d5b5d3e316b28172d53299e2001d10267fd7916e parent 15d174927a115d9ce34b50c5cf9025cdc12f5cc4 Author: theFerdi265 <theferdi265@gmail.com> Date: Tue, 4 Oct 2016 10:16:51 +0200 Spelling 15d174927a115d9ce34b50c5cf9025cdc12f5cc4 2016-08-12T00:08:50Z 2016-08-12T00:08:50Z New function to register events on window Willy willyatmailoodotorg commit 15d174927a115d9ce34b50c5cf9025cdc12f5cc4 parent 208dfb86eb0b9740a0a909def3570d5d1eb6457a Author: Willy <willyatmailoodotorg> Date: Fri, 12 Aug 2016 02:08:50 +0200 New function to register events on window 208dfb86eb0b9740a0a909def3570d5d1eb6457a 2015-11-25T23:33:58Z 2015-11-25T23:33:58Z Make wm_move us X/Y coordinates as is z3bra willyatmailoodotorg commit 208dfb86eb0b9740a0a909def3570d5d1eb6457a parent ae47478c1ce914b39c17eba1928d210e2a9c15a3 Author: z3bra <willyatmailoodotorg> Date: Thu, 26 Nov 2015 00:33:58 +0100 Make wm_move us X/Y coordinates as is ae47478c1ce914b39c17eba1928d210e2a9c15a3 2015-11-22T02:10:24Z 2015-11-22T02:10:24Z wm_set_override() dcat dcat@iotek.org commit ae47478c1ce914b39c17eba1928d210e2a9c15a3 parent fb8de7fca9de329eb47a4e540992e341557a206a Author: dcat <dcat@iotek.org> Date: Sun, 22 Nov 2015 03:10:24 +0100 wm_set_override() fb8de7fca9de329eb47a4e540992e341557a206a 2015-11-22T01:57:13Z 2015-11-22T01:57:13Z wm_get_focus() in README dcat dcat@iotek.org commit fb8de7fca9de329eb47a4e540992e341557a206a parent d9726345df54827e0e23029f47aefff3daec100b Author: dcat <dcat@iotek.org> Date: Sun, 22 Nov 2015 02:57:13 +0100 wm_get_focus() in README d9726345df54827e0e23029f47aefff3daec100b 2015-11-22T01:53:00Z 2015-11-22T01:53:00Z wm_get_focus dcat dcat@iotek.org commit d9726345df54827e0e23029f47aefff3daec100b parent e72afad71ff21c17964634f381b1290acb6ff522 Author: dcat <dcat@iotek.org> Date: Sun, 22 Nov 2015 02:53:00 +0100 wm_get_focus e72afad71ff21c17964634f381b1290acb6ff522 2015-11-16T14:56:09Z 2015-11-16T14:56:09Z add license, thanks darkf! dcat dcat@iotek.org commit e72afad71ff21c17964634f381b1290acb6ff522 parent 55635101c6fe2422cbce02d563222eec54bffacd Author: dcat <dcat@iotek.org> Date: Mon, 16 Nov 2015 15:56:09 +0100 add license, thanks darkf! 55635101c6fe2422cbce02d563222eec54bffacd 2015-11-16T14:20:48Z 2015-11-16T14:20:48Z Merge pull request #1 from nindwen/patch-1 zebra v3.1 z3bratabs@users.noreply.github.com commit 55635101c6fe2422cbce02d563222eec54bffacd parent c01b3b57cb8df4904b2740a2fc4900b8f5026c70 Author: zebra v3.1 <z3bratabs@users.noreply.github.com> Date: Mon, 16 Nov 2015 15:20:48 +0100 Merge pull request #1 from nindwen/patch-1 Fix a typo 5c1d5b4948b9c0e4e38af81e95572cb175cf16e6 2015-11-16T13:21:35Z 2015-11-16T13:21:35Z Fix a typo Nindwen nindweniel@gmail.com commit 5c1d5b4948b9c0e4e38af81e95572cb175cf16e6 parent c01b3b57cb8df4904b2740a2fc4900b8f5026c70 Author: Nindwen <nindweniel@gmail.com> Date: Mon, 16 Nov 2015 15:21:35 +0200 Fix a typo c01b3b57cb8df4904b2740a2fc4900b8f5026c70 2015-11-14T22:15:25Z 2015-11-14T22:15:25Z Fix typo in wm_resize causing weird behaviors z3bra willyatmailoodotorg commit c01b3b57cb8df4904b2740a2fc4900b8f5026c70 parent be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 23:15:25 +0100 Fix typo in wm_resize causing weird behaviors be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee 2015-11-14T21:24:02Z 2015-11-14T21:50:12Z Fix wm_move / wm_resize absolute handling z3bra willyatmailoodotorg commit be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee parent dad211ee2e2ce35cd08778c1142efb2a753668cc Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 22:24:02 +0100 Fix wm_move / wm_resize absolute handling dad211ee2e2ce35cd08778c1142efb2a753668cc 2015-11-14T19:23:19Z 2015-11-14T19:23:19Z fix indent/style in wm_get_attribute z3bra willyatmailoodotorg commit dad211ee2e2ce35cd08778c1142efb2a753668cc parent e25b0ebcae7b968af8a000740f9d006d316a9998 Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 20:23:19 +0100 fix indent/style in wm_get_attribute e25b0ebcae7b968af8a000740f9d006d316a9998 2015-11-14T14:51:20Z 2015-11-14T14:51:20Z Prefix all functions with wm_ z3bra willyatmailoodotorg commit e25b0ebcae7b968af8a000740f9d006d316a9998 parent 599df0a7d465932cd9120c18ec483644eab4e8dd Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 15:51:20 +0100 Prefix all functions with wm_ 599df0a7d465932cd9120c18ec483644eab4e8dd 2015-11-14T13:58:31Z 2015-11-14T13:58:31Z Add README to the project z3bra willyatmailoodotorg commit 599df0a7d465932cd9120c18ec483644eab4e8dd parent 0d6908dc2e053a32979b693284727e3c6fe72922 Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 14:58:31 +0100 Add README to the project 0d6908dc2e053a32979b693284727e3c6fe72922 2015-11-14T13:42:02Z 2015-11-14T13:42:02Z First commit z3bra willyatmailoodotorg commit 0d6908dc2e053a32979b693284727e3c6fe72922 Author: z3bra <willyatmailoodotorg> Date: Sat, 14 Nov 2015 14:42:02 +0100 First commit