Skip to content

Normal windows get faded on exit with no-fading-openclose = true #245

Description

@blueyed

I am trying to figure out if the combination of --fading and --no-fading-openclose is working as expected.

There is no fading when opening a window, but when closing it!

Relevant settings:

# Fading
fading = true;
# fade-delta = 30;
fade-in-step = 0.03;
fade-out-step = 0.03;
no-fading-openclose = true;
# no-fading-destroyed-argb = true;
fade-exclude = [ ];

wintypes:
{
  # Also used for completion in KMyMoney.
  tooltip = { fade = true; shadow = true; opacity = 0.85; focus = true; };
  notify = { fade = true; shadow = true; opacity = 0.95; focus = true; };
  normal = { fade = true; };
};

When setting fade=false via wintypes fading gets not done during closing, but it seems like no-fading-openclose should cover this anyway?!

wintypes:
{
  …
  normal = { fade = false; };
};

Debug output when the window gets opened:

set_fade_callback(0x04200010): exec callback
set_fade_callback(0x04200009): exec callback
[     3.63 ] error    3 BadWindow    request    2 minor    0 serial   4780: "BadWindow (invalid Window parameter)"
win_determine_fade(0x01c002dd): via wintype_fade[normal]
win_determine_fade(0x01c002dd): fade = 1
win_get_name(0x01c002dd): client = 0x04200009, name = "urxvt", ret = 1
win_get_class(0x01c002dd): client = 0x04200009, instance = "urxvt", general = "URxvt"
win_get_role(0x01c002dd): client = 0x04200009, role = "(null)", ret = -1
map_win(0x01c002dd): type normal
win_determine_fade(): no_fading_openclose and in_openclose
win_determine_fade(0x01c002dd): fade = 0
set_fade_callback(0x01c002dd): exec callback
finish_map_win(0x01c002dd)
win_determine_fade(0x01c002dd): via wintype_fade[normal]
win_determine_fade(0x01c002dd): fade = 1
finish_map_win(0x01c002dd): end
win_get_name(0x01c002dd): client = 0x04200009, name = "~/src/awesome_ (awesome)", ret = 1
win_get_name(0x01c002dd): client = 0x04200009, name = "~/src/awesome_ (awesome)", ret = 0

And when the window gets closed:

set_fade_callback(0x02400155): exec callback
set_fade_callback(0x04200011): exec callback
win_determine_fade(): no_fading_openclose and in_openclose
win_determine_fade(0x01c002dd): fade = 0
set_fade_callback(0x01c002dd): exec callback

I've added various debug statements, and will provide them in a pull request (#246).

Additionally: when minimizing the window it gets faded (which is expected), but on unminimizing it won't.

I am using the awesome window manager. Both awesome and compton from Git master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions