Comments (7)
In my desktop environment, video players MPV, SMPlayer, and VLC can all move the window by starting a click and drag on the video viewport, even while the left mouse button is also bound to the play/pause action. This is especially useful when all GUI elements are hidden except the viewport.
Sure.
I also have no idea whether this is possible with Wayland. I don't use Wayland because I've heard it has limitations with software which positions and sizes its own windows, and has no user-facing advantages if your desktop already renders without frame drops and tearing under Xorg, which mine does.
We explicitly force XCB instead of wayland because wayland's window management is broken by design, and sane window management is more important for me than any """"benefit"""" that wayland brings. I believe you can blame some of the sway devs for this situation. Wayland breaks these three settings:
Until that is fixed, I couldn't care less about wayland.
from mpc-qt.
Yes, of course it would be a benefit for Windows users for a Windows-specific implementation of this feature to also be implemented for Windows, but that's not part of this particular feature request.
from mpc-qt.
I think this is possible, although I don't think Qt has an API for voluntarily entering a window drag on wayland. Or any platform for that matter. For Wayland, I'd need to access the underlying platform and do it raw, which isn't what one would call good code. For other platforms it can be done à la wheel-reinventing with cursor tracking + window move events, the usual way. I could simply not do this on wayland.
Re: the other apps you mentioned.
Smplayer forces use of xcb and will fail to run if DISPLAY is not set. So it can always fake a window move whenever it wants.
As for vlc, unsetting DISPLAY and forcing the fusion style with QT_STYLE_OVERRIDE=fusion does not allow the window to be dragged by the viewport. On Linux, it's a feature of the Breeze theme to enter window drag from window areas, not vlc. I haven't tested vlc on Windows to see if it does that there too.
mpv talks wayland natively and can enter a window drag from the viewport.
So that's the state of this. A platform-specific code path is needed for wayland, and faking a window move for everyone else.
from mpc-qt.
Just to clarify here, I also don't use Wayland and this feature request is not requesting implementation with or in Wayland. I agree with you.
from mpc-qt.
If implemented, I presume this would also work on Windows?
from mpc-qt.
The title specifies "Xorg", so if the feature request was fulfilled as written, it would not.
from mpc-qt.
Click to drag is also available on the Windows versions of the players that you mentioned, as a note
from mpc-qt.
Related Issues (20)
- Feature request : ignoring start & end of videos
- issue with libjack and pipewire-libjack ? HOT 6
- mpc-qt doesn't want to launch anymore with qt5ct/qt6ct HOT 5
- Feature request: playlist thumbnails HOT 4
- Remember last playlist, unchecked still remembers. HOT 1
- Bug: Default After Playback option if set to exit
- displaying a check mark next to the selected track in the menu
- Update translations HOT 5
- Add new updated MPC-HC and MPC-BE HOT 2
- Option to choose the desired video quality (medium video quality for smooth playback)
- Add left mouse button click option to play/pause the video HOT 2
- Add option to play automatically network stream from clipboard and keyboard shortcut "ctrl+v" to paste and play videos from clipboard HOT 1
- compilation instructions may need to be updated HOT 1
- libmujs.dll missing on latest Windows action artifact HOT 1
- "Prefer external subs" prevents me from changing the subtitle track HOT 1
- Implement subtitle delaying HOT 3
- Dark Theme On Windows? HOT 3
- Can't play videos from my.mail.ru/video HOT 5
- Mute doesnt get saved when closing
- Anime4K shaders don't work. Any of the chains. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpc-qt.