-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Kando appears behind full-screen applications on Linux #620
Comments
Hi there! Thanks for the report. I currently do not have a Cinnamon installation around for reproducing this. On GNOME, I cannot observe the issue. This could either be an issue of Cinnamon or of Electron. Kando sets its window to be "Always on Top". Maybe Cinnamon does not respect this? Also, Cinnamon has Fullscreen Unredirecting enabled per default, I think. This prevents compositing if there is a fullscreen window. There should be a checkbox for this somewhere in the settings. Maybe you can try disabling that? There is also a not-really-resolved issue in Electron: electron/electron#12445 If you would install Kando from source, you could try some things. Maybe we find a workaround... |
Hi Simon! No, thank you for this beautiful app! I disabled unredirecting, but it didn't solve the issue, so that one probably is not the cause. I don't know anything about Electron, so I can't help with that, but at least it seems that in that thread they talk about a possible workaround? I reinstalled Kando from source, and the issue is still there, so I am ready to try anything you can throw at me. 😊 Note: in order to make it run, besides your instructions on how to run it from source, I also had to: npm i --save-dev @types/node
npm install events --save |
Just to add some info to the issue:
|
Btw, have you tried whether other windows are shown above full-screen windows if they are set to be "always on top"? I think you can enable this via a right-click on the title bar. Currently, this property is set here in Kando. You could experiment by setting this somewhere else. Maybe here after the window has been shown or maybe even here after it got focused for GNOME Shell. Does this change anything? |
Other windows will show on top of full-screen windows, whether or not I set "Always on Top" for them: as soon as I focus them, they come on top. For this reason, I don't believe that it can be solved by calling Despite that, I tried adding it anyway in both places you suggested: after Just as a test, besides |
JFYI: I also tried some external ways to force Kando's window on top:
and I also tried using |
I also tried this possible solution: no success. |
That's weird. I guess you could experiment with the window properties around here. If - for instance - you use the following, Kando will open in a pretty ordinary window. Not in fullscreen, with a border, and with window controls: this.window = new BrowserWindow({
webPreferences: {
contextIsolation: true,
sandbox: true,
webSecurity: process.env.NODE_ENV !== 'development',
preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
},
transparent: false,
resizable: true,
skipTaskbar: false,
frame: true,
hasShadow: true,
type: 'normal',
show: false,
}); Is this window now always on top? |
Yes: with these changes, the Kando window appears on top of full-screen windows. Actually, tweaking with all the properties of the
to
on this line, and nothing else, solved the problem. |
Cool! On GNOME, type If on Cinnamon Finally, you'll need to use the backend somewhere here, similar to how the KDE X11 backend is used. |
I did it. Unfortunately, it seems that another problem came up: with the new backend, when the mouse is on one of my 3 screens, the Kando menu appears on another one. This doesn't happen when I just set |
Well, the backend should only modify the window type... Maybe you can simply create a pull request and I see if I spot any potential issues? |
Sorry, I stand corrected: whether I set I'm trying to investigate it a little bit, but I'm not a TypeScript/Electron developer, so I don't know if I can find anything. Will let you know. |
Sorry: I couldn't find where the coordinates of the Kando window get set upon triggering. I created the pull request. |
Short Summary
When triggered on a screen where a full-screen application is running, Kando does not show. Triggering full-screen off on the application shows that Kando was running behind it.
Tried so far with Firefox and Xournal++.
Steps to Reproduce the Issue
Kando Version
v1.4.0
Installation Method
Via a package manger
Desktop Environment
Linux
Environment Version
Linux Mint 21.3, kernel 5.15.0-121, DE: Cinnamon 6.0.4
Additional Information
I believe this to be similar, but not identical, to issue #522. Main difference: it opens behind the app, not on another desktop.
The text was updated successfully, but these errors were encountered: