Fix all misspellings of _NET_WM_WINDOW_OPACITY.

This commit is contained in:
Bert Gijsbers 2022-01-12 22:59:31 +01:00
parent 31e58712ec
commit 494cb4b85d
6 changed files with 13 additions and 13 deletions

View File

@ -95,7 +95,7 @@ OPTIONS
Blue color value of shadow (0.0 - 1.0, defaults to 0). Blue color value of shadow (0.0 - 1.0, defaults to 0).
*--inactive-opacity-override*:: *--inactive-opacity-override*::
Let inactive opacity set by *-i* override the '_NET_WM_OPACITY' values of windows. Let inactive opacity set by *-i* override the '_NET_WM_WINDOW_OPACITY' values of windows.
*--active-opacity* 'OPACITY':: *--active-opacity* 'OPACITY'::
Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
@ -128,7 +128,7 @@ OPTIONS
Try to detect windows with rounded corners and don't consider them shaped windows. The accuracy is not very high, unfortunately. Try to detect windows with rounded corners and don't consider them shaped windows. The accuracy is not very high, unfortunately.
*--detect-client-opacity*:: *--detect-client-opacity*::
Detect '_NET_WM_OPACITY' on client windows, useful for window managers not passing '_NET_WM_OPACITY' of client windows to frame windows. Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
*--refresh-rate* 'REFRESH_RATE':: *--refresh-rate* 'REFRESH_RATE'::
Specify refresh rate of the screen. If not specified or 0, picom will try detecting this with X RandR extension. Specify refresh rate of the screen. If not specified or 0, picom will try detecting this with X RandR extension.

View File

@ -109,7 +109,7 @@ inactive-opacity = 0.8;
# frame-opacity = 1.0 # frame-opacity = 1.0
frame-opacity = 0.7; frame-opacity = 0.7;
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. # Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows.
# inactive-opacity-override = true # inactive-opacity-override = true
inactive-opacity-override = false; inactive-opacity-override = false;
@ -235,8 +235,8 @@ mark-ovredir-focused = true;
# detect-rounded-corners = false # detect-rounded-corners = false
detect-rounded-corners = true; detect-rounded-corners = true;
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers # Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
# not passing '_NET_WM_OPACITY' of client windows to frame windows. # not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
# #
# detect-client-opacity = false # detect-client-opacity = false
detect-client-opacity = true; detect-client-opacity = true;

View File

@ -175,7 +175,7 @@ typedef struct options {
// === Opacity === // === Opacity ===
/// Default opacity for inactive windows. /// Default opacity for inactive windows.
/// 32-bit integer with the format of _NET_WM_OPACITY. /// 32-bit integer with the format of _NET_WM_WINDOW_OPACITY.
double inactive_opacity; double inactive_opacity;
/// Default opacity for inactive windows. /// Default opacity for inactive windows.
double active_opacity; double active_opacity;
@ -185,8 +185,8 @@ typedef struct options {
/// Frame opacity. Relative to window opacity, also affects shadow /// Frame opacity. Relative to window opacity, also affects shadow
/// opacity. /// opacity.
double frame_opacity; double frame_opacity;
/// Whether to detect _NET_WM_OPACITY on client windows. Used on window /// Whether to detect _NET_WM_WINDOW_OPACITY on client windows. Used on window
/// managers that don't pass _NET_WM_OPACITY to frame windows. /// managers that don't pass _NET_WM_WINDOW_OPACITY to frame windows.
bool detect_client_opacity; bool detect_client_opacity;
// === Other window processing === // === Other window processing ===

View File

@ -497,7 +497,7 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t
queue_redraw(ps); queue_redraw(ps);
} }
// If _NET_WM_OPACITY changes // If _NET_WM_WINDOW_OPACITY changes
if (ev->atom == ps->atoms->a_NET_WM_WINDOW_OPACITY) { if (ev->atom == ps->atoms->a_NET_WM_WINDOW_OPACITY) {
auto w = find_managed_win(ps, ev->window) ?: find_toplevel(ps, ev->window); auto w = find_managed_win(ps, ev->window) ?: find_toplevel(ps, ev->window);
if (w) { if (w) {

View File

@ -109,7 +109,7 @@ static void usage(const char *argv0, int ret) {
" Blue color value of shadow (0.0 - 1.0, defaults to 0).\n" " Blue color value of shadow (0.0 - 1.0, defaults to 0).\n"
"\n" "\n"
"--inactive-opacity-override\n" "--inactive-opacity-override\n"
" Inactive opacity set by -i overrides value of _NET_WM_OPACITY.\n" " Inactive opacity set by -i overrides value of _NET_WM_WINDOW_OPACITY.\n"
"\n" "\n"
"--inactive-dim value\n" "--inactive-dim value\n"
" Dim inactive windows. (0.0 - 1.0, defaults to 0)\n" " Dim inactive windows. (0.0 - 1.0, defaults to 0)\n"
@ -156,8 +156,8 @@ static void usage(const char *argv0, int ret) {
" conditions.\n" " conditions.\n"
"\n" "\n"
"--detect-client-opacity\n" "--detect-client-opacity\n"
" Detect _NET_WM_OPACITY on client windows, useful for window\n" " Detect _NET_WM_WINDOW_OPACITY on client windows, useful for window\n"
" managers not passing _NET_WM_OPACITY of client windows to frame\n" " managers not passing _NET_WM_WINDOW_OPACITY of client windows to frame\n"
" windows.\n" " windows.\n"
"\n" "\n"
"--refresh-rate val\n" "--refresh-rate val\n"

View File

@ -209,7 +209,7 @@ struct managed_win {
/// Previous window opacity. /// Previous window opacity.
double opacity_target_old; double opacity_target_old;
/// true if window (or client window, for broken window managers /// true if window (or client window, for broken window managers
/// not transferring client window's _NET_WM_OPACITY value) has opacity prop /// not transferring client window's _NET_WM_WINDOW_OPACITY value) has opacity prop
bool has_opacity_prop; bool has_opacity_prop;
/// Cached value of opacity window attribute. /// Cached value of opacity window attribute.
opacity_t opacity_prop; opacity_t opacity_prop;