Commit graph

167 commits

Author SHA1 Message Date
Uli Schlachter
a57c79687a Use xcb-errors library if it is available
This library allows to get a human-readable string describing X11
requests, events, and errors. We now use this library to pretty-print
X11 errors if we get any.

To test this code, I added the following two lines to AwesomeWM so that
X11 errors are generated:

    xcb_set_input_focus(globalconf.connection, 42, 42, 42);
    xcb_randr_set_output_primary(globalconf.connection,
        globalconf.screen->root, 42);

Output without xcb-errors:

    X error: request=SetInputFocus (major 42, minor 0), error=BadValue (2)
    X error: request=(null) (major 140, minor 30), error=(null) (147)

Output with xcb-errors:

    X error: request=SetInputFocus (major 42, minor 0), error=Value (2)
    X error: request=RandR-SetOutputPrimary (major 140, minor 30), error=RandR-BadOutput (147)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-03-03 09:15:29 +01:00
Uli Schlachter
b50559e71b Remove AWESOME_IS_BIG_ENDIAN
This is unused since commit db3b1fe431 from 2010.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-02-18 13:55:51 +01:00
Uli Schlachter
de4715cacd Merge branch 'find-fallback-config' of https://github.com/psychon/awesome 2017-01-27 17:39:30 +01:00
Uli Schlachter
9922c3c8e9 Explicitly try the default configuration
Up to now we assumed that the default config is in a path where
xdgConfigFind() finds it. However, evidently this is not always the
case, so make this explicitly try the default configuration file.

Fixes: https://github.com/awesomeWM/awesome/issues/1346
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-26 15:18:37 +01:00
Uli Schlachter
288e44596f Export build-time paths as entries on awesome
This removes some @EXPANSIONS@ from Lua files and removes a hack that
was needed. All is better now! :-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-01-25 09:41:11 +01:00
Uli Schlachter
2e6358ca2d Stop checking for __builtin_clz (#985)
Since commit 19137a55 we no longer use this builtin, so we don't have to check
for it anymore either.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-05 22:12:26 +02:00
Uli Schlachter
a141370704 Add a vim modeline to all C source
Most of the files already had this, at least.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-12-12 17:42:16 +01:00
Julian Wollrath
6cc7be512c Remove the *.in from all files.
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00
Julien Danjou
1f046b3c9f [everything] Switch from libconfuse to Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-20 18:01:15 +02:00
Julien Danjou
fb5b227214 [config] Rename Key to keybinding_t
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-05-03 12:01:05 +02:00
Julien Danjou
6b4c9fed83 Remove useless ; after DO_SLIST macro 2008-03-23 15:52:17 +01:00
Julien Danjou
4b412d86ff split out config stuff 2008-01-31 16:34:00 +01:00
Julien Danjou
f2e64adb59 remove awesome-check, move that to an -k option to awesome 2008-01-31 10:21:03 +01:00
Julien Danjou
0b5e3e7cd1 split config.h, and move DO_SLIST() 2008-01-21 16:31:14 +01:00
Julien Danjou
f700e483d6 rename TagClientLink to tag_client_node_t 2008-01-21 16:31:14 +01:00
Julien Danjou
c82542ddb1 rename FocusList to client_node_t 2008-01-21 16:31:14 +01:00
Julien Danjou
7caa03acdd rename prev to next 2008-01-21 16:31:14 +01:00
Julien Danjou
3c960865aa use list functions for Layout 2008-01-21 16:31:14 +01:00
Julien Danjou
628ce3e7ad use list functions for TagClientLink 2008-01-21 16:31:14 +01:00
Julien Danjou
99e54ef971 use list functions for Tag 2008-01-21 16:31:13 +01:00
Julien Danjou
56d7e1654a use list functions for statusbar 2008-01-21 16:31:13 +01:00
Julien Danjou
a823470fd0 use list function for Widget 2008-01-21 16:31:13 +01:00
Julien Danjou
19887a3201 use list functions for Button 2008-01-21 16:31:13 +01:00
Julien Danjou
b08c343b65 use list functions for Key 2008-01-21 16:31:13 +01:00
Julien Danjou
66507b0401 use list functions for rules 2008-01-21 16:31:13 +01:00
Julien Danjou
572f409a29 use lists functions for Client 2008-01-21 16:31:13 +01:00
Nikos Ntarmos
7c122e00ac Fix for windows showing up in tile-mode and not before already floated (FS#22)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-16 19:01:30 +01:00
Nikos Ntarmos
a245b2c033 restart on XRandR event
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-11 13:41:29 +01:00
Nikos Ntarmos
956ce4ab8e add nscreen var to store screen count
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-01-11 13:39:48 +01:00
Julien Danjou
c2ca948b39 add new_get_focus option 2008-01-07 18:54:45 +01:00
Julien Danjou
5c9291ff0b use a cache system for status bar 2008-01-07 18:12:38 +01:00
Julien Danjou
58c8912e33 Revert "force windows to tile mode" - it's useful afterall to not consider "no value" as "false"
This reverts commit 81afe81b4e.

Conflicts:

	event.c
2008-01-07 00:36:45 +01:00
Julien Danjou
81afe81b4e force windows to tile mode 2008-01-07 00:28:27 +01:00
Julien Danjou
4fbce766bf add auto option to float in rules 2008-01-06 22:21:23 +01:00
Julien Danjou
633d7c07ee add get_current_layout() to get current layout :-) 2008-01-06 11:35:51 +01:00
Julien Danjou
163acc8624 use Area to store window geoms 2008-01-05 19:38:50 +01:00
Julien Danjou
5a66ffb2e7 remove flags attribute 2008-01-05 18:57:33 +01:00
Julien Danjou
609318cbec use 2 vars for knowing if users supplied coords 2008-01-05 12:35:12 +01:00
Julien Danjou
6ca7d7b2db use Area in Widget 2008-01-04 21:46:25 +01:00
Julien Danjou
1d6613349e typedef enum Alignment 2008-01-04 19:17:20 +01:00
Julien Danjou
af6ff367eb typedef enum Position 2008-01-04 19:12:07 +01:00
Julien Danjou
1d08ed45a8 add new_become_master option to disable new client becoming automaticaly master 2008-01-04 17:53:28 +01:00
Julien Danjou
d25d5b921f add sloppy_focus option to allow click-to-focus 2008-01-04 14:40:26 +01:00
Julien Danjou
11da7412b3 add support for _NET_WM_STATE_SKIP_TASKBAR 2008-01-03 13:15:15 +01:00
Julien Danjou
10c257d57a get rid of Client phys_screen 2008-01-02 19:26:55 +01:00
Julien Danjou
437bc5c22c add 2008 copyright notice 2008-01-02 16:59:43 +01:00
Julien Danjou
d402ae8f69 optimize rule usage 2008-01-02 12:44:18 +01:00
Julien Danjou
346a383258 implement xproperty rule matching (FS#5) 2008-01-02 12:23:01 +01:00
Julien Danjou
0cf4ff6d9f implement not_master rules option (FS#6) 2008-01-02 12:00:36 +01:00
Julien Danjou
4f65aa8f51 rework headers inclusion 2008-01-01 18:02:36 +01:00