mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
parent
abd0be51a0
commit
562c737588
24
src/conky.cc
24
src/conky.cc
@ -2076,20 +2076,24 @@ static void main_loop(void)
|
|||||||
sigaddset(&newmask, SIGUSR1);
|
sigaddset(&newmask, SIGUSR1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILD_X11
|
||||||
#ifdef BUILD_XSHAPE
|
#ifdef BUILD_XSHAPE
|
||||||
/* allow only decorated windows to be given mouse input */
|
if (out_to_x.get(*state)) {
|
||||||
int major_version, minor_version;
|
/* allow only decorated windows to be given mouse input */
|
||||||
if (!XShapeQueryVersion(display, &major_version, &minor_version)) {
|
int major_version, minor_version;
|
||||||
NORM_ERR("Input shapes are not supported");
|
if (!XShapeQueryVersion(display, &major_version, &minor_version)) {
|
||||||
} else {
|
NORM_ERR("Input shapes are not supported");
|
||||||
if (own_window.get(*state) &&
|
} else {
|
||||||
(own_window_type.get(*state) != TYPE_NORMAL ||
|
if (own_window.get(*state) &&
|
||||||
(TEST_HINT(own_window_hints.get(*state), HINT_UNDECORATED)))) {
|
(own_window_type.get(*state) != TYPE_NORMAL ||
|
||||||
XShapeCombineRectangles(display, window.window, ShapeInput, 0, 0,
|
(TEST_HINT(own_window_hints.get(*state), HINT_UNDECORATED)))) {
|
||||||
NULL, 0, ShapeSet, Unsorted);
|
XShapeCombineRectangles(display, window.window, ShapeInput, 0, 0,
|
||||||
|
NULL, 0, ShapeSet, Unsorted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* BUILD_XSHAPE */
|
#endif /* BUILD_XSHAPE */
|
||||||
|
#endif /* BUILD_X11 */
|
||||||
|
|
||||||
last_update_time = 0.0;
|
last_update_time = 0.0;
|
||||||
next_update_time = get_time() - fmod(get_time(), active_update_interval());
|
next_update_time = get_time() - fmod(get_time(), active_update_interval());
|
||||||
|
Loading…
Reference in New Issue
Block a user