#Creating taskbar for MacOS

8 messages · Page 1 of 1 (latest)

sick lance
#

Is it possible to create some sort of window which doesn't steal focus from other windows?

Trying to create a windows-like taskbar for MacOS but everytime I interact with it, whatever window I'm on loses focus. I also don't want the taskbar to show anything in the topbar once clicked.

median plinth
#

Oh, you're talking about interaction triggers focus. Yeah, I'm not sure about that one. I think that's the OSes job to help you switch between things. If you clicked a button and another app stayed focused, that would be weird. Or another example would be: if you have keyboard shortcuts in your app, how would the OS know when to trigger yours if it never focused?

late locust
#

Also, clicking on the taskbar on Windows does cause the focus to shift to the taskbar, the active window loses focus, so not sure why you would want to prevent focus from shifting anyway

sick lance
#

Well the main thing I was trying to fix is that I have to click once to focus before I can click anything in the custom bar.

In windows you can just click onto an app icon straight away, in tauri right now I have to click once on the window to be able to hover over anything

late locust
#

Oh, I believe on MacOS the window has an option to specify whether it accepts the first click or not, I don't remember what the setting is though

exotic ibex
#

^ accepts_first_mouse

sick lance