# Brave on Linux sometimes closes windows with "alt" and tabs with "ctrl"

**URL:** <https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892>\
**Category:** Desktop Support\
**Tags:** linux, bug, browser\
**Created:** [May 26, 2025, 2:01am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892 "2025-05-26T02:01:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [May 26, 2025, 2:01am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/1 "2025-05-26T02:01:53Z")

</div>

**Description of the issue:** Under certain circumstances on the Gnome desktop the “ctrl” key will start the “close tab” action and the “alt” tab will start the “close window” action.

**How can this issue be reproduced?**

_EDIT: There’s an additional unknown step that must trigger this behavior, while opening this thread I could reliable reproduce this behavior with these instructions, but after an hour or so I can’t anymore. I have had this behavior before so I know it wasn’t a random one off._

1. Install Brave via flatpak from flathub
2. Open Brave
3. Use the trackpad gesture or “super” key to show the activities key.
4. Select the Brave window
5. Now some keys misbehave:
  - Pushing the “ctrl” key will close any tab
  - Pushing the “alt” key will close the window, if the window has multiple tabs it will ask the confirmation to close all the tabs

6. Pressing the “tab” key restores the “ctrl” and “alt” keys behaviors

**Expected result:** For “ctrl” and “alt” to not change behavior

**Brave Version( check `About Brave`):** Version 1.78.102 Chromium: 136.0.7103.113 (Official Build)

**Additional Information:**

- My setup:
  - Ubuntu 24.04
  - Gnome 46
  - Wayland
  - nVidia graphics driver

- Similar topics
  - [Pressing Ctrl or Alt closes the Browser or Tab](https://community.brave.app/t/pressing-ctrl-or-alt-closes-the-browser-or-tab/491891)
  - [Brave browser tabs closing when shouldn't](https://community.brave.app/t/brave-browser-tabs-closing-when-shouldnt/576054)
  - [Brave randomly closes when pressing Control or Alt on Ubuntu](https://community.brave.app/t/brave-randomly-closes-when-pressing-control-or-alt-on-ubuntu/569378)

Update: I had to

---

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [June 3, 2025, 6:01am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/2 "2025-06-03T06:01:12Z")

</div>

This seems to be related to something on Gnome, see [this issue there](https://gitlab.gnome.org/GNOME/mutter/-/issues/1066#note_2459686)

---

<div class="post-metadata">

**Author:** ![289wk](https://avatars.discourse-cdn.com/v4/letter/2/439d5e/32.png) [@289wk](https://community.brave.app/u/289wk)\
**Post date:** [June 3, 2025, 6:08am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/3 "2025-06-03T06:08:03Z")

</div>

@Mattches

OP has good, detailed report of Brave Browser (Linux OS - flatpak installation - Gnome) performance issue.

---

<div class="post-metadata">

**Author:** ![289wk](https://avatars.discourse-cdn.com/v4/letter/2/439d5e/32.png) [@289wk](https://community.brave.app/u/289wk)\
**Post date:** [June 3, 2025, 6:10am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/4 "2025-06-03T06:10:02Z")

</div>

@vraiment

Using Brave Browser, I ran into a bot problem - could not view your “this issue there”.

---

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [June 3, 2025, 6:22am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/5 "2025-06-03T06:22:15Z")

</div>

Maybe try other browser? My understanding is the issue tracking for Gnome is dealing with heavy problems with bots and they have setup very aggressive filtering

---

<div class="post-metadata">

**Author:** ![289wk](https://avatars.discourse-cdn.com/v4/letter/2/439d5e/32.png) [@289wk](https://community.brave.app/u/289wk)\
**Post date:** [June 3, 2025, 6:33am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/6 "2025-06-03T06:33:01Z")

</div>

@vraiment

Used Firefox . . . (thanks).

Screenshot from [your link](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/2):

 ![Screen Shot 2025-06-03 at 2.31.57 AM](https://global.discourse-cdn.com/brave/original/3X/1/8/18c5a5c6fd85e143a18e533f401542244c0ba19a.png)

Full Topic Title from your link:

> `Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.` on every workspace switching using the 4-finger gesture

---

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [June 3, 2025, 6:37am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/7 "2025-06-03T06:37:43Z")

</div>

Is there something I can do to log keyboard events on Brave so I can help debug this on the Gnome side?

---

<div class="post-metadata">

**Author:** ![289wk](https://avatars.discourse-cdn.com/v4/letter/2/439d5e/32.png) [@289wk](https://community.brave.app/u/289wk)\
**Post date:** [June 3, 2025, 6:41am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/8 "2025-06-03T06:41:28Z")

</div>

@vraiment

I would wait for @Mattches (of Brave Support) to [determine how to proceed](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/3).

---

<div class="post-metadata">

**Author:** ![Mattches](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/mattches/32/25189_2.png) [@Mattches](https://community.brave.app/u/Mattches)\
**Post date:** [June 3, 2025, 6:18pm UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/9 "2025-06-03T18:18:28Z")

</div>

Yeah if it’s happening on other browser and applications outside of Brave then it is probably a system issue/setting that is causing the behavior.

Seeing some other users report this:

- [https://askubuntu.com/questions/1497058/ubuntu-23-10-pressing-alt-key-closes-window-abruptly](https://askubuntu.com/questions/1497058/ubuntu-23-10-pressing-alt-key-closes-window-abruptly)
- [https://www.reddit.com/r/Ubuntu/comments/14tsrur/pressing\_ctrl\_closes\_browser\_tab\_in\_ubuntu\_2304/](https://www.reddit.com/r/Ubuntu/comments/14tsrur/pressing_ctrl_closes_browser_tab_in_ubuntu_2304/)

---

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [June 4, 2025, 4:08am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/10 "2025-06-04T04:08:18Z")

</div>

Is there any setting/command line argument/environment variable I can set to get any additional logging so I can provide that data to the Gnome project?

---

<div class="post-metadata">

**Author:** ![vraiment](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/vraiment/32/203282_2.png) [@vraiment](https://community.brave.app/u/vraiment)\
**Post date:** [June 4, 2025, 6:31am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/11 "2025-06-04T06:31:04Z")

</div>

This also seem to be related: [https://bugs.launchpad.net/mutter/+bug/1857392](https://bugs.launchpad.net/mutter/+bug/1857392)  
This does fix the issue: [https://askubuntu.com/a/1532813/1640021](https://askubuntu.com/a/1532813/1640021)  
Issue on Gnome issue tracker: [https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8443](https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8443)  
Issue on Ubuntu issue tracker: [https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2112439](https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2112439)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/brave/original/3X/1/8/182067f3480d1a5e7aea5ae3131b116ca1ef7918.png) [@system](https://community.brave.app/u/system)\
**Post date:** [July 4, 2025, 6:34am UTC](https://community.brave.app/t/brave-on-linux-sometimes-closes-windows-with-alt-and-tabs-with-ctrl/620892/13 "2025-07-04T06:34:19Z")

</div>

Closed on July 4, 2025, 6:34am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
