-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot close About window on i3/xmonad window managers #1750
Comments
Can you post a screenshot of your primary application window? What affordances does it have for closing/minimizing/etc.? |
It has nothing of it (closing/minimizing/etc.). That is a feature of window managers like i3 or xmonad. My primary app window looks similar to the about window screen shot i posted. Only difference is that it has a menu bar. |
No need to censor. Don't worry about it. Just take a screenshot of how windows are supposed to be closable via the chrome in i3/xmonad. |
I need to censor it to not expose my contacts. If the popup window itself does not provide a method to close it, there is no way to close it. Applications can be closed via menu bar (File->quit) or via key combo ctrl+q. In browsers like Chrome or Firefox tabs can be closed via the small x or via key combo ctrl+w. I am preparing a screenshot. That is going to take a moment. |
Thanks. All I really needed was the top bar. Indeed, no close button! Interesting! |
Just to give a bit more context here, i3 and xmonad are tiling window managers, where one of the key ideas is that users control windows using the keyboard. These window managers typically have minimal to no window decorations and don't have/need the typical minimize/maximize/close buttons. signal-desktop's about dialog can still be closed with the usual window manager keybinding (e.g. for i3, $mod+shift+q), but it seems common for applications to have a separate close or ok button at the bottom of the dialog (as noted above: firefox, gimp, etc.). I can't actually find another application that doesn't have one. |
Hello, chiming in as a longterm i3 user. As @ixjlyons is explaining in his last comment, it is normal, that there do not exist close / minimize / maximize buttons in the top bar. It is one of the features of i3 (and other tilting window managers) that one uses the mouse less and keyboard shortcuts more, e.g. for closing a window. This keyboard shortcut works on the the main window and also on the about page, but other applications look different: They have dedicated close buttons. But even more interesting is the fact, that those windows are floating by default (which means they appear in front of other windows, which in i3 is only used for splash screens or dialog / popup windows). Compare these two screenshots where I opened the about page in Signal and Gimp: This is because Gimp sets a Window Property, specifically |
With the following diff, the dialog property is set, see https://electronjs.org/docs/api/browser-window#parent-and-child-windows: diff --git a/main.js b/main.js
index 3c5ae37a..33ed5469 100644
--- a/main.js
+++ b/main.js
@@ -249,7 +249,8 @@ function showAbout() {
webPreferences: {
nodeIntegration: false,
preload: path.join(__dirname, 'preload.js')
- }
+ },
+ parent: mainWindow
};
aboutWindow = new BrowserWindow(options); And it looks like this after clicking the About button: But contrary to my previous understanding the Escape key does not close the window, so it should be considered to add a close button and/or handle the Escape key. |
Thanks for the investigation, everyone. We'll get this fixed soon. |
|
Bug description
When i open the about window, i cannot close it anymore. Only closing via quitting signal desktop app is possible.
Steps to reproduce
Actual result: about window cannot be closed
Expected result: click anywhere in the about window to close it or via pressing key ESC
Screenshots
Platform info
Operating System: Archlinux with window manager i3wm
Browser: -
Signal version: v1.0.37
Link to debug log
The text was updated successfully, but these errors were encountered: