Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Firefox workspace switching and closing is broken. #103

Open
StavromulaBeta opened this issue Jan 9, 2021 · 1 comment
Open

Firefox workspace switching and closing is broken. #103

StavromulaBeta opened this issue Jan 9, 2021 · 1 comment

Comments

@StavromulaBeta
Copy link

StavromulaBeta commented Jan 9, 2021

Here are some issues I am having with Firefox windows in Sowm:

  • If I switch to a workspace with a Firefox window, it will often not be there. This seems to be dependent on which workspace I switch from.
  • Sometimes, multiple workspaces seem to have the same Firefox window on - again dependent of which workspace I switch from. I am currently typing this on Firefox on workspace 5, but if i switch to 4, then 3, then 2 - I end up with the same Firefox window open. If I switch directly from 5 to 2, the desktop is blank as it should be.

[EDIT: After some experimenting, I can't replicate these above two bugs anymore after deleting .mozilla and .cache. However, the point below is still valid.]

  • If I have multiple Firefox windows open, closing one of them will close all of them, even when they are in different workspaces. When I then open a new Firefox window, all of the closed windows reopen.
  • This seems to be only happening with Firefox windows (but then again, I only really use Firefox and xterm). Other windows don't seem to do any of these things and don't seem to interfere with this but at all.

Here is my config.h:

#ifndef CONFIG_H
#define CONFIG_H

#define MOD Mod4Mask

const char* menu   [] = {"dmenu-wal",      0};
const char* term   [] = {"xterm",          0};
const char* scrot  [] = {"scrot",          0};
const char* briup  [] = {"light", "-A", "5", 0}; // TODO
const char* bridown[] = {"light", "-U", "5", 0};
const char* voldown[] = {"amixer", "sset", "Master", "5%-",         0};
const char* volup  [] = {"amixer", "sset", "Master", "5%+",         0};
const char* volmute[] = {"amixer", "sset", "Master", "toggle",      0};
const char* browser[] = {"firefox", 0};

static struct key keys[] = {
    {MOD,      XK_q,   win_kill,   {0}},
    {MOD,      XK_c,   win_center, {0}},
    {MOD,      XK_f,   win_fs,     {0}},

    {MOD,           XK_Tab, win_next,   {0}},
    {MOD|ShiftMask, XK_Tab, win_prev,   {0}},

    {MOD, XK_space,  run, {.com = menu}},
    {MOD, XK_p,      run, {.com = scrot}},
    {MOD, XK_Return, run, {.com = term}},
    {MOD, XK_b,      run, {.com = browser}},

    {0,   XF86XK_AudioLowerVolume,  run, {.com = voldown}},
    {0,   XF86XK_AudioRaiseVolume,  run, {.com = volup}},
    {0,   XF86XK_AudioMute,         run, {.com = volmute}},
    {0,   XF86XK_MonBrightnessUp,   run, {.com = briup}},
    {0,   XF86XK_MonBrightnessDown, run, {.com = bridown}},

    {MOD,           XK_1, ws_go,     {.i = 1}},
    {MOD|ShiftMask, XK_1, win_to_ws, {.i = 1}},
    {MOD,           XK_2, ws_go,     {.i = 2}},
    {MOD|ShiftMask, XK_2, win_to_ws, {.i = 2}},
    {MOD,           XK_3, ws_go,     {.i = 3}},
    {MOD|ShiftMask, XK_3, win_to_ws, {.i = 3}},
    {MOD,           XK_4, ws_go,     {.i = 4}},
    {MOD|ShiftMask, XK_4, win_to_ws, {.i = 4}},
    {MOD,           XK_5, ws_go,     {.i = 5}},
    {MOD|ShiftMask, XK_5, win_to_ws, {.i = 5}},
    {MOD,           XK_6, ws_go,     {.i = 6}},
    {MOD|ShiftMask, XK_6, win_to_ws, {.i = 6}},
};

#endif
@StavromulaBeta StavromulaBeta changed the title Firefox workspace switching is broken. Firefox workspace switching and closing is broken. Jan 9, 2021
@StavromulaBeta
Copy link
Author

This seems to be linked to #44, but that didn't explicitly mention Firefox, so I thought this could be useful to clarify.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant