Summary: | Feature request: macOS-like titlebar proxy icon | ||
---|---|---|---|
Product: | [Frameworks and Libraries] plasma-activities | Reporter: | Nate Graham <nate> |
Component: | general | Assignee: | Ivan Čukić <ivan.cukic> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | argonel, epost.kde, eridanired123, girard.nicolas, hein, kde, kde, opensource, plasma-bugs, postix |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=423938 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nate Graham
2018-02-20 17:27:23 UTC
Wouldn't that be a job for the WindowMetadata framework? +1 on having a proxy icon Wow, that looks like a really useful feature! I don't see where activities would come into this. Ultimately you need to start a drag event with a URL as mimedata. Bigger challenges you need to face are: - what's the URL for an unsaved document? - it's also one of those things that if it isn't done consistently the UX is useless. Even if we ported all KDE apps that still leaves a problem. - kdecorations are themable, introducing new behaviour into something themeable in a way that works for all is always a messy nightmare If we're copying down to the point of it being something in the titlebar the actions that would be needed to be done are: - export the current file URL as a window property (like the DBus menu paths) - update decoration to have the URL - include custom drag and drop handling within kwin's decorations with a URL as metadata. The icon could be disabled for an unsaved document. That's what macOS does. You can't drag it until the document has been saved. If doing this in the titlebar is not feasible, someone just proposed handling it in the Task Manager in Bug 423938 which could be an easier option, maybe. What would be responsible for
> export the current file URL as a window property
KWin? KWindowSystem? The app itself?
the app itself so whoever provides the dragging can read it I think that's why Kai was thinking that KActivities could help here. IIRC he was thinking that KActivities knew the URLs of each app's open documents or something? I am also interested seeing this feature implemented. I wonder if the "client app" could not communicate to kwin that it has a file open. very much like showing the file need saving. I tried to find the API doc for this but I got lost... |