su8
7bca0ca881
Fix issues #439 , #303 ( #545 )
...
* Fix issues https://github.com/brndnmtthws/conky/issues/439 , https://github.com/brndnmtthws/conky/issues/303
* core.cc: Add missing header file
* core.cc: Check if we build for x11 and add the locks functions
* read_tcpip.cc: Fix for https://github.com/brndnmtthws/conky/issues/306
* read_tcpip.cc: Missing string format specifier for "snprintf()"
* read_tcpip.cc: Wrong signed int format specifier for "snprintf()"
* Missing many string format specifiers to "snprintf()"
2018-08-02 11:15:16 -04:00
Brenden Matthews
4b92556fca
Build improvements: clang-tidy, sonar, Dockerfile. ( #488 )
2018-05-12 19:26:31 -04:00
Brenden Matthews
eebc8c653b
Add formatting/static analysis ( #486 )
...
* Reform source with clang-format.
Rules applied with:
$ find . -iname *.h -o -iname *.cc | xargs clang-format \
-style=file -i -fallback-style=google
* Add clang-format and analyze to build.
Based on the excellent work at: https://github.com/ttroy50/cmake-examples
* Clean up CMake stuff on macOS.
* Remove vim/emacs modelines.
* Update copyright dates.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
* Build fixes.
2018-05-12 12:03:00 -04:00
Alexey Korop
d97f4dfd8a
Make mouse-through workable ( #213 )
2018-01-19 09:12:08 -05:00
Darin McBride
a58a6d4e08
Clean up a few valgrind errors, add realloc-failure handling for graphs. ( #367 )
...
I think this fixes #360
2017-02-11 13:39:18 -08:00
dbriba
17a29def4b
Update x11.cc ( #304 )
2016-09-08 08:24:54 -07:00
Franc[e]sco
162d9d13b7
added support for multiple xinerama heads (fixes issue #172 )
2015-12-01 13:53:43 +01:00
Nelis Oostens
fc6888eee3
Added sanity check to avoid making 0x0 window
2015-07-31 08:22:20 +02:00
Andrew Deason
b9dba46fb3
Enable X11 backing store
...
In our XCreateWindow call, we always set the backing_store attribute
to 'Always'. But since we never add the CWBackingStore to our value
mask, the backing_store setting always gets set to the default
NotUseful. This means that the backing store is never turned on, and
so when unobscuring the conky window, portions of the display will not
be drawn immediately if conky is blocked doing something else (e.g.
network, disk, the process is stopped), which is really annoying.
To fix this, specify the CWBackingStore flag in our value mask, so the
conky data is always visible, even if conky is blocking on some other
operation.
2014-10-25 19:34:25 -05:00
Andrew Deason
cd95b659c7
Consolidate common X11 XSetWindowAttributes flags
...
We always specify CWOverrideRedirect. So just assign that to flags
once, instead of assigning it to flags in four different cases.
2014-10-25 19:33:19 -05:00
Denis Gorodnichev
442f78119c
add support for x11 shape extension
...
x11 shape extension (version >= 1.1) provide ability to set up input region
set up empty input region for undecorated window to create transparent window for mouse events
2014-09-09 11:12:44 +04:00
Brenden Matthews
ddef05d4eb
Update version, copyright.
2012-05-03 16:34:44 -07:00
Jim Duchek
bf7248ecd6
Fixed GCC 4.7.0 issues, double buffering
...
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2012-05-03 14:06:50 -07:00
Pavel Labath
6482283c03
Revert default value of alignment to BOTTOM_LEFT
...
previous default value NONE behaved strangely in combination with other default settings.
2011-10-23 22:26:15 +02:00
Pavel Labath
981ed0b609
fix own_window_colour setting name
2010-11-23 23:18:50 +01:00
Pavel Labath
4ab7f6d0d1
Replace the if(&l) unused hack with unused attribute
2010-11-23 16:43:14 +01:00
Nikolas Garofil
5781e4f1e7
Fix build with BUILD_X11 but without OWN_WINDOW
2010-11-23 13:58:53 +01:00
Pavel Labath
3db3e6045f
Fix segfault when out_to_x is set to false
2010-11-18 16:09:36 +01:00
Pavel Labath
b7a80fa449
Fix segfault when own_window is set to false
2010-11-17 14:43:49 +01:00
Pavel Labath
375e21af07
Fix a small leak + some cleanup
2010-11-13 19:40:43 +01:00
Pavel Labath
bee7b9b99c
Bugfix in own_window setting handler
2010-09-12 15:32:05 +02:00
Pavel Labath
eedb5241f8
Make imlib_cache_{size,flush_interval} lua settings
2010-08-29 14:31:22 +02:00
Pavel Labath
feb4100e84
make double_buffer a lua setting
2010-04-23 21:54:40 +02:00
Pavel Labath
9e8bbdd4ef
Create a conky window when own_window is set
2010-04-23 21:25:09 +02:00
Pavel Labath
67e37668ec
make border_width a lua setting
2010-04-23 01:22:22 +02:00
Pavel Labath
96c966b7a6
Make border_{inner,outer}_margin a lua setting
2010-04-22 21:59:12 +02:00
Pavel Labath
00e91d8c31
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/conky.cc
src/x11.cc
2010-04-22 21:17:14 +02:00
Pavel Labath
927394505c
Make use_xft a lua setting
2010-04-21 19:33:39 +02:00
Nikolas Garofil
dbfbc5f28c
Bugfix: adding/removing use_xft in the config had no effect unless you restarted conky, reloading the config was not enough
2010-04-12 23:27:12 +02:00
Pavel Labath
4b38666777
Fix a couple of problems when compiling without OWN_WINDOW
2010-03-14 22:26:29 +01:00
Pavel Labath
0584d423e6
make default_{shade_,outline_,}color lua settings
2010-03-11 12:08:55 +01:00
Pavel Labath
ac8d4385eb
Make colorN a lua setting
2010-03-11 11:31:10 +01:00
Pavel Labath
b1a871b9b9
reorder things a bit, make background_colour setting check the value for validity
2010-03-10 21:02:13 +01:00
Pavel Labath
c41a507e62
Initialize X when out_to_x is set (using the infractructure from previous commit)
2010-03-10 20:01:26 +01:00
Pavel Labath
fe9c0609cc
Make display a lua setting
2010-03-04 18:31:28 +01:00
Pavel Labath
4a4172c92d
Make own_window_hints a lua setting
2010-03-02 20:30:15 +01:00
Pavel Labath
41ddaf9e23
refactor settings classes
...
result: easier declaration of settings, easier construction of custom setting classes, commitcount++
2010-03-02 19:29:51 +01:00
Pavel Labath
a810804a6b
make own_window_colour a lua setting
2010-02-28 15:51:01 +01:00
Pavel Labath
a4a08c82b5
make own_window_argb_value a lua setting
2010-02-27 22:28:33 +01:00
Pavel Labath
4a5304b395
Make own_window_type a lua setting
2010-02-26 18:48:57 +01:00
Pavel Labath
518045eaf6
make own_window_transparent a lua setting
2010-02-26 18:38:15 +01:00
Pavel Labath
94be4f6eb9
make own_window_argb_visual a lua setting
2010-02-26 18:29:46 +01:00
Pavel Labath
1960a511fd
Make own_window_title a lua setting
2010-02-26 18:09:55 +01:00
Pavel Labath
fad11cabe1
make own_window_class a lua setting
2010-02-26 17:42:56 +01:00
Pavel Labath
efac83e814
make own_window a lua setting
2010-02-26 14:37:34 +01:00
Pavel Labath
12e98c7da5
Port out_to_x setting to lua-config
2010-02-25 22:28:34 +01:00
Pavel Labath
724fb2585c
Refactor default getters/setter for setting and make them more useful
...
Adding features AND reducing code size.... yeah
2010-02-25 21:11:39 +01:00
Pavel Labath
80b049d1c0
Port 'alignment' setting to lua.
2010-02-24 20:51:33 +01:00
Nikolas Garofil
c1648e6558
Use free_and_zero in [u-z]*.cc where appropriate
2010-02-24 12:04:28 +01:00
Pavel Labath
ff52605930
Fix compilation without --enable-argb
...
Bug reported by zaphire
2010-02-03 22:42:19 +01:00