mirror of https://github.com/yshui/picom.git
Merge pull request #531 from omar-polo/next
silencing some compiler warnings
This commit is contained in:
commit
8b3e70b40b
|
@ -101,7 +101,7 @@ const char *const BACKEND_STRS[] = {[BKEND_XRENDER] = "xrender",
|
||||||
session_t *ps_g = NULL;
|
session_t *ps_g = NULL;
|
||||||
|
|
||||||
void set_root_flags(session_t *ps, uint64_t flags) {
|
void set_root_flags(session_t *ps, uint64_t flags) {
|
||||||
log_debug("Setting root flags: %lu", flags);
|
log_debug("Setting root flags: %" PRIu64, flags);
|
||||||
ps->root_flags |= flags;
|
ps->root_flags |= flags;
|
||||||
ps->pending_updates = true;
|
ps->pending_updates = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -239,7 +240,7 @@ void win_get_region_frame_local(const struct managed_win *w, region_t *res) {
|
||||||
|
|
||||||
// limit the frame region to inside the window
|
// limit the frame region to inside the window
|
||||||
region_t reg_win;
|
region_t reg_win;
|
||||||
pixman_region32_init_rects(®_win, (rect_t[]){0, 0, outer_width, outer_height}, 1);
|
pixman_region32_init_rects(®_win, (rect_t[]){{0, 0, outer_width, outer_height}}, 1);
|
||||||
pixman_region32_intersect(res, ®_win, res);
|
pixman_region32_intersect(res, ®_win, res);
|
||||||
pixman_region32_fini(®_win);
|
pixman_region32_fini(®_win);
|
||||||
}
|
}
|
||||||
|
@ -2515,7 +2516,7 @@ win_is_fullscreen_xcb(xcb_connection_t *c, const struct atom *a, const xcb_windo
|
||||||
|
|
||||||
/// Set flags on a window. Some sanity checks are performed
|
/// Set flags on a window. Some sanity checks are performed
|
||||||
void win_set_flags(struct managed_win *w, uint64_t flags) {
|
void win_set_flags(struct managed_win *w, uint64_t flags) {
|
||||||
log_debug("Set flags %lu to window %#010x (%s)", flags, w->base.id, w->name);
|
log_debug("Set flags %" PRIu64 " to window %#010x (%s)", flags, w->base.id, w->name);
|
||||||
if (unlikely(w->state == WSTATE_DESTROYING)) {
|
if (unlikely(w->state == WSTATE_DESTROYING)) {
|
||||||
log_error("Flags set on a destroyed window %#010x (%s)", w->base.id, w->name);
|
log_error("Flags set on a destroyed window %#010x (%s)", w->base.id, w->name);
|
||||||
return;
|
return;
|
||||||
|
@ -2526,7 +2527,8 @@ void win_set_flags(struct managed_win *w, uint64_t flags) {
|
||||||
|
|
||||||
/// Clear flags on a window. Some sanity checks are performed
|
/// Clear flags on a window. Some sanity checks are performed
|
||||||
void win_clear_flags(struct managed_win *w, uint64_t flags) {
|
void win_clear_flags(struct managed_win *w, uint64_t flags) {
|
||||||
log_debug("Clear flags %lu from window %#010x (%s)", flags, w->base.id, w->name);
|
log_debug("Clear flags %" PRIu64 " from window %#010x (%s)", flags, w->base.id,
|
||||||
|
w->name);
|
||||||
if (unlikely(w->state == WSTATE_DESTROYING)) {
|
if (unlikely(w->state == WSTATE_DESTROYING)) {
|
||||||
log_warn("Flags cleared on a destroyed window %#010x (%s)", w->base.id,
|
log_warn("Flags cleared on a destroyed window %#010x (%s)", w->base.id,
|
||||||
w->name);
|
w->name);
|
||||||
|
|
Loading…
Reference in New Issue