libwm, branch HEADX windows manipulation library
9b2e6a117a5d89348d661e65a70ccf9ddab1b4ef2021-09-09T09:33:43Z2021-09-09T09:33:43ZMatch monitors backware in wm_find_monitor()Willy Goiffondev@z3bra.orgcommit 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()
e399cf6a188e5663ebc9ce88f9da7621eee0e6752021-09-07T11:39:41Z2021-09-07T11:39:41ZAdd ATTR_D attribute to retrieve window color depthWilly Goiffondev@z3bra.orgcommit 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
d10dc9ebb2ef7eaed2bc48331b50e808354beebb2020-06-17T08:11:42Z2020-06-17T08:19:10ZAdd function to find a monitor from an absolute coordinateWilly Goiffondev@z3bra.orgcommit 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
71c9d52b8c7f57d9078e83a4812689ecc885d4e72020-06-16T14:53:57Z2020-06-16T14:53:57ZRandr wrapper to retrieve a monitor info structureWilly Goiffondev@z3bra.orgcommit 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
5730e9aad5fa689dc05aee3f0f44d3354bbd00412020-06-16T14:09:48Z2020-06-16T14:09:48ZAdd support for multi-monitor through Xrandr(3)Willy Goiffondev@z3bra.orgcommit 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)
9d0180e7638d3ed2aee875484219b43490f9cc362020-06-08T14:04:35Z2020-06-08T14:04:35Zwm_get_atom_name(): retrieve the name of an atomWilly Goiffondev@z3bra.orgcommit 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
ad7ca51e05973a6ab131a102e5a813a09ecee5852020-06-07T15:46:05Z2020-06-07T15:46:05ZUpdate README to reflect latest changesWilly Goiffondev@z3bra.orgcommit ad7ca51e05973a6ab131a102e5a813a09ecee585
parent a8a3813cdad5563e3ca680420a5dcfef6ff2dbd6
Author: Willy Goiffon <dev@z3bra.org>
Date: Sun, 7 Jun 2020 17:46:05 +0200
Update README to reflect latest changes
a8a3813cdad5563e3ca680420a5dcfef6ff2dbd62020-06-06T09:36:07Z2020-06-06T09:36:07ZRequest 32 atoms (arbitrary) everytime in wm_get_atom()Willy Goiffondev@z3bra.orgcommit 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()
c05c8910d3e502415906c72a0b9f9758aa4528162020-06-05T09:58:47Z2020-06-05T09:58:47ZRemove unused parameter in wm_add_atom()Willy Goiffondev@z3bra.orgcommit 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()
0400e78958e6c0914203a5a3eca042274020479b2019-10-31T15:05:54Z2019-10-31T15:05:54ZFix previously broken wm_restack()Willy Goiffondev@z3bra.orgcommit 0400e78958e6c0914203a5a3eca042274020479b
parent 61d8c057d116e7db273a6d8fa3237f5a76c75779
Author: Willy Goiffon <dev@z3bra.org>
Date: Thu, 31 Oct 2019 16:05:54 +0100
Fix previously broken wm_restack()
61d8c057d116e7db273a6d8fa3237f5a76c757792019-10-31T10:44:51Z2019-10-31T10:44:51ZAllow setting window border as ARGB valuesWilly Goiffondev@z3bra.orgcommit 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 :)
a43614c6a4f9f8e59697ab76cab14407082a6bfc2019-10-31T07:26:59Z2019-10-31T07:26:59Zwm_set_atom(): return XCB error code in case of errorWilly Goiffondev@z3bra.orgcommit 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
6feb73742a86509543be40d95e611c0a459f526c2019-10-28T18:13:14Z2019-10-28T18:13:14ZRevert wm_restack() API changeWilly Goiffondev@z3bra.orgcommit 6feb73742a86509543be40d95e611c0a459f526c
parent d9e5eeb099b33941fec3c257e5051cd5ce03da53
Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 28 Oct 2019 19:13:14 +0100
Revert wm_restack() API change
d9e5eeb099b33941fec3c257e5051cd5ce03da532019-10-28T17:44:30Z2019-10-28T17:44:30ZAdd functions to deal with window properties (atoms)Willy Goiffondev@z3bra.orgcommit 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)
ead66d8b2d01d853ac9b27fa4bb6f6120433b71d2019-10-26T11:09:24Z2019-10-26T11:19:12ZAdd function to register cursor events on a windowWilly Goiffondev@z3bra.orgcommit 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.
de8f4882f68f284cce23d506144d0082eb8db0542019-10-26T10:10:06Z2019-10-26T10:10:06ZUpdate wm.h header to match the return value changesWilly Goiffondev@z3bra.orgcommit 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
5d4aa9b667289e24efc1313fbecefb96788ea93e2019-10-26T09:50:40Z2019-10-26T10:00:20ZChange return values of functions for consistencyWilly Goiffondev@z3bra.orgcommit 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.
5d78292a0e2d5a329a279f6dabdc4da9c7df19962019-10-26T09:50:24Z2019-10-26T09:50:24ZMove wm_is_listable() with other state-check functionsWilly Goiffondev@z3bra.orgcommit 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
c1137a74cfbbaae29096475a4f631406cb338e432019-10-26T09:16:41Z2019-10-26T09:16:41ZUnify window variable names amongst functionsWilly Goiffondev@z3bra.orgcommit c1137a74cfbbaae29096475a4f631406cb338e43
parent c92ee4ce0527c1983e6fef40fc43a43fde832f24
Author: Willy Goiffon <dev@z3bra.org>
Date: Sat, 26 Oct 2019 11:16:41 +0200
Unify window variable names amongst functions
c92ee4ce0527c1983e6fef40fc43a43fde832f242019-10-22T18:22:22Z2019-10-22T18:22:22ZChange wm_reg_event() return valuesWilly Goiffondev@z3bra.orgcommit 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.
65e44403ff65e1c15b76b7be8c20021475d07c1c2019-10-22T17:48:27Z2019-10-22T17:53:44ZHandle errors in wm_reg_event()Willy Goiffondev@z3bra.orgcommit 65e44403ff65e1c15b76b7be8c20021475d07c1c
parent 246faeb2f14e0be097f3d7629830b469bd6bb7b8
Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 22 Oct 2019 19:48:27 +0200
Handle errors in wm_reg_event()
246faeb2f14e0be097f3d7629830b469bd6bb7b82019-10-22T16:04:39Z2019-10-22T17:53:34ZRemove all internal calls to xcb_flush()Willy Goiffondev@z3bra.orgcommit 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.
8af38ef59496889dc2bbbc7d43ebc888a055465b2016-10-06T11:29:54Z2016-10-06T11:29:54ZMerge pull request #4 from Ferdi265/vanillazebra v3.1z3bratabs@users.noreply.github.comcommit 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
fefb116c49d00a9f911ceac988dd46aa187fd67e2016-10-05T22:14:38Z2016-10-05T22:14:38Zrevert Markdown syntax changeFerdinand Bachmanntheferdi265@gmail.comcommit fefb116c49d00a9f911ceac988dd46aa187fd67e
parent 494b84789b936c2804178074e8944e6abe918b97
Author: Ferdinand Bachmann <theferdi265@gmail.com>
Date: Thu, 6 Oct 2016 00:14:38 +0200
revert Markdown syntax change
494b84789b936c2804178074e8944e6abe918b972016-10-04T08:44:42Z2016-10-04T08:44:42ZREADME: C syntax highlighting and consistent shell snippetstheFerdi265theferdi265@gmail.comcommit 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
ece2c328acd72459a705412f10f9d0dd9e4e2b002016-10-04T08:25:05Z2016-10-04T08:25:05ZREADME: update and reorder list of functionstheFerdi265theferdi265@gmail.comcommit ece2c328acd72459a705412f10f9d0dd9e4e2b00
parent d5b5d3e316b28172d53299e2001d10267fd7916e
Author: theFerdi265 <theferdi265@gmail.com>
Date: Tue, 4 Oct 2016 10:25:05 +0200
README: update and reorder list of functions
d5b5d3e316b28172d53299e2001d10267fd7916e2016-10-04T08:16:51Z2016-10-04T08:16:51ZSpellingtheFerdi265theferdi265@gmail.comcommit d5b5d3e316b28172d53299e2001d10267fd7916e
parent 15d174927a115d9ce34b50c5cf9025cdc12f5cc4
Author: theFerdi265 <theferdi265@gmail.com>
Date: Tue, 4 Oct 2016 10:16:51 +0200
Spelling
15d174927a115d9ce34b50c5cf9025cdc12f5cc42016-08-12T00:08:50Z2016-08-12T00:08:50ZNew function to register events on windowWillywillyatmailoodotorgcommit 15d174927a115d9ce34b50c5cf9025cdc12f5cc4
parent 208dfb86eb0b9740a0a909def3570d5d1eb6457a
Author: Willy <willyatmailoodotorg>
Date: Fri, 12 Aug 2016 02:08:50 +0200
New function to register events on window
208dfb86eb0b9740a0a909def3570d5d1eb6457a2015-11-25T23:33:58Z2015-11-25T23:33:58ZMake wm_move us X/Y coordinates as isz3brawillyatmailoodotorgcommit 208dfb86eb0b9740a0a909def3570d5d1eb6457a
parent ae47478c1ce914b39c17eba1928d210e2a9c15a3
Author: z3bra <willyatmailoodotorg>
Date: Thu, 26 Nov 2015 00:33:58 +0100
Make wm_move us X/Y coordinates as is
ae47478c1ce914b39c17eba1928d210e2a9c15a32015-11-22T02:10:24Z2015-11-22T02:10:24Zwm_set_override()dcatdcat@iotek.orgcommit ae47478c1ce914b39c17eba1928d210e2a9c15a3
parent fb8de7fca9de329eb47a4e540992e341557a206a
Author: dcat <dcat@iotek.org>
Date: Sun, 22 Nov 2015 03:10:24 +0100
wm_set_override()
fb8de7fca9de329eb47a4e540992e341557a206a2015-11-22T01:57:13Z2015-11-22T01:57:13Zwm_get_focus() in READMEdcatdcat@iotek.orgcommit fb8de7fca9de329eb47a4e540992e341557a206a
parent d9726345df54827e0e23029f47aefff3daec100b
Author: dcat <dcat@iotek.org>
Date: Sun, 22 Nov 2015 02:57:13 +0100
wm_get_focus() in README
d9726345df54827e0e23029f47aefff3daec100b2015-11-22T01:53:00Z2015-11-22T01:53:00Zwm_get_focusdcatdcat@iotek.orgcommit d9726345df54827e0e23029f47aefff3daec100b
parent e72afad71ff21c17964634f381b1290acb6ff522
Author: dcat <dcat@iotek.org>
Date: Sun, 22 Nov 2015 02:53:00 +0100
wm_get_focus
e72afad71ff21c17964634f381b1290acb6ff5222015-11-16T14:56:09Z2015-11-16T14:56:09Zadd license, thanks darkf!dcatdcat@iotek.orgcommit e72afad71ff21c17964634f381b1290acb6ff522
parent 55635101c6fe2422cbce02d563222eec54bffacd
Author: dcat <dcat@iotek.org>
Date: Mon, 16 Nov 2015 15:56:09 +0100
add license, thanks darkf!
55635101c6fe2422cbce02d563222eec54bffacd2015-11-16T14:20:48Z2015-11-16T14:20:48ZMerge pull request #1 from nindwen/patch-1zebra v3.1z3bratabs@users.noreply.github.comcommit 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
5c1d5b4948b9c0e4e38af81e95572cb175cf16e62015-11-16T13:21:35Z2015-11-16T13:21:35ZFix a typoNindwennindweniel@gmail.comcommit 5c1d5b4948b9c0e4e38af81e95572cb175cf16e6
parent c01b3b57cb8df4904b2740a2fc4900b8f5026c70
Author: Nindwen <nindweniel@gmail.com>
Date: Mon, 16 Nov 2015 15:21:35 +0200
Fix a typo
c01b3b57cb8df4904b2740a2fc4900b8f5026c702015-11-14T22:15:25Z2015-11-14T22:15:25ZFix typo in wm_resize causing weird behaviorsz3brawillyatmailoodotorgcommit c01b3b57cb8df4904b2740a2fc4900b8f5026c70
parent be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 23:15:25 +0100
Fix typo in wm_resize causing weird behaviors
be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee2015-11-14T21:24:02Z2015-11-14T21:50:12ZFix wm_move / wm_resize absolute handlingz3brawillyatmailoodotorgcommit be6ff33c3bd346fb2dcf3e725e23b92d6aa129ee
parent dad211ee2e2ce35cd08778c1142efb2a753668cc
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 22:24:02 +0100
Fix wm_move / wm_resize absolute handling
dad211ee2e2ce35cd08778c1142efb2a753668cc2015-11-14T19:23:19Z2015-11-14T19:23:19Zfix indent/style in wm_get_attributez3brawillyatmailoodotorgcommit dad211ee2e2ce35cd08778c1142efb2a753668cc
parent e25b0ebcae7b968af8a000740f9d006d316a9998
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 20:23:19 +0100
fix indent/style in wm_get_attribute
e25b0ebcae7b968af8a000740f9d006d316a99982015-11-14T14:51:20Z2015-11-14T14:51:20ZPrefix all functions with wm_z3brawillyatmailoodotorgcommit e25b0ebcae7b968af8a000740f9d006d316a9998
parent 599df0a7d465932cd9120c18ec483644eab4e8dd
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 15:51:20 +0100
Prefix all functions with wm_
599df0a7d465932cd9120c18ec483644eab4e8dd2015-11-14T13:58:31Z2015-11-14T13:58:31ZAdd README to the projectz3brawillyatmailoodotorgcommit 599df0a7d465932cd9120c18ec483644eab4e8dd
parent 0d6908dc2e053a32979b693284727e3c6fe72922
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 14:58:31 +0100
Add README to the project
0d6908dc2e053a32979b693284727e3c6fe729222015-11-14T13:42:02Z2015-11-14T13:42:02ZFirst commitz3brawillyatmailoodotorgcommit 0d6908dc2e053a32979b693284727e3c6fe72922
Author: z3bra <willyatmailoodotorg>
Date: Sat, 14 Nov 2015 14:42:02 +0100
First commit