Sergio Martins
a66748f6ca
relax test
...
Seems to happen with 5.15 static. It's benign anyway
2020-10-16 17:10:40 +01:00
Sergio Martins
e5f46ead3b
qtquick: Fix build
2020-10-16 17:08:36 +01:00
Sergio Martins
171023558e
Introduce WindowBeingDraggedWayland
...
This is just a cleanup. Instead of having WindowBeingDragged
having both code paths, let's keep the non-wayland platforms code
small and clean.
2020-10-16 17:08:36 +01:00
Allen Winter
059a424b88
Merge branch '1.1'
2020-10-16 08:39:26 -04:00
Sergio Martins
307b22deaf
Wayland: Also allow to drag by tab widget
...
For when we don't have title bar
2020-10-16 13:30:20 +01:00
Sergio Martins
e405688f67
Fixing build with msvc 2013
...
error C2876: 'QMimeData' : not all overloads are accessible
2020-10-16 13:16:13 +01:00
Sergio Martins
68554119f4
Fix -Werror build on mac
2020-10-16 11:46:02 +01:00
Sergio Martins
86a4a740ef
wayland: dropping a single tab or frame now works too
2020-10-16 11:33:09 +01:00
Sergio Martins
0a004b83ca
Add WindowBeingDragged::draggable() getter
2020-10-16 11:16:49 +01:00
Sergio Martins
4fa47403c5
Make DragArea::drop() deal in WindowBeingDragged()
...
Preparing for wayland case.
2020-10-16 10:49:42 +01:00
Sergio Martins
9e418ced53
wayland: Finish WindowBeingDragged::maxSize() and minSize
...
Supports now single dock widgets or single frames
2020-10-16 10:40:34 +01:00
Sergio Martins
bc04863439
Wayland: Dragging a tab or a nested dock widget now shows pixmap
...
TODO: Supporting a drop for those two cases
2020-10-16 10:33:01 +01:00
Allen Winter
77f259a435
README.md - contact info
2020-10-15 16:06:26 -04:00
Sergio Martins
16bcace663
Add some transparency to the QDrag pixmap
...
Looks better
2020-10-15 19:15:40 +01:00
Sergio Martins
52fddaa1cd
wayland: Set a pixmap while DND
...
Since our source window isn't moving, let's at least show a copy
of it on the pixmap
A bunch of tearing going on kwin_wayland/nvidia though.
Weston/nvidia is fine.
Haven't tried kwin_wayland/Intel yet
2020-10-15 19:11:12 +01:00
Sergio Martins
f3d7400c15
wayland: End the drag properly when user cancels the drag
2020-10-15 19:02:46 +01:00
Allen Winter
7ebc3f3533
src/DockWidgetBase.h - fix compile after merge from master
2020-10-15 12:43:29 -04:00
Renato Araujo Oliveira Filho
0ee94b425e
Fixed python bindings generation
2020-10-15 12:38:32 -04:00
Sergio Martins
d44a173945
Wayland: Really end the drag after dropping
...
Fixes a crash on shutdown
2020-10-15 17:27:12 +01:00
Sergio Martins
ac001d6f32
wayland: Don't allow to drop onto itself
...
It was showing the drop indicators in the window being dragged
2020-10-15 16:50:46 +01:00
Sergio Martins
e3de2df69c
wayland: Add initial drag and drop support
...
You can drag a floating window and drop it somewhere
- Only works with segmented indicator style. Classical indicators
require us being able to positioning an overlay, which wayland
doesn't allow us to.
- Detaching inner tabs and dock widgets not implemented yet.
- polishing needed
2020-10-15 16:50:46 +01:00
Sergio Martins
39d3c90b2f
Minor variable rename for readability
2020-10-15 16:50:46 +01:00
Sergio Martins
bca21defa5
wayland: Don't grab mouse or set window opacity
...
Not supported by the QPA and not needed for wayland anyway
2020-10-15 16:50:46 +01:00
Sergio Martins
dd3116ae7f
Minor: remove const, need to pass it somewhere else
2020-10-15 16:50:46 +01:00
Allen Winter
49b3765eae
Merge branch '1.1'
2020-10-15 10:53:41 -04:00
Allen Winter
1f5dd35bec
Merge pull request #93 from KDAB/fix-python-binding
...
Fixed python bindings generation
2020-10-15 10:52:44 -04:00
Renato Araujo Oliveira Filho
6fce8e6161
Fixed python bindings generation
2020-10-15 09:55:32 -03:00
Allen Winter
e57b46979d
buildsystem - fix installation path for Python bindings
2020-10-14 16:27:18 -04:00
Allen Winter
683b67abb0
buildsystem - install libs with symlinks for the major vers
2020-10-14 15:59:53 -04:00
Sergio Martins
6479bcabfb
Make DropArea::drop() receive WindowBeingDragged instead
...
In prep for wayland support
2020-10-14 20:42:51 +01:00
Sergio Martins
a8c9735652
wayland: Add needed API to WindowBeingDragged
...
So it can act as a substitute for FloatingWindow, which we don't
always have during a drag
2020-10-14 20:34:55 +01:00
Sergio Martins
93b25b6a31
Make MultiSplitter::rectForDrop() receive WindowBeingDragged
...
Instead of FloatingWindow, which won't exist on wayland while a
drag is in progress.
2020-10-14 20:25:09 +01:00
Sergio Martins
4eb5a0940e
dont' cast pointer to bool
2020-10-14 19:44:27 +01:00
Sergio Martins
c2cc914b5c
indicators: Depend less on FloatingWindow
...
Deal in terms of WindowBeingDragged instead, as wayland won't have
a floating window being dragged
2020-10-14 19:39:51 +01:00
Sergio Martins
1219ba90af
Add WindowBeingDragged::affinities()
...
So we can deal in WindowBeingDragged instead of FloatingWindow.
For wayland we won't have floating window whilst dragging
2020-10-14 19:22:13 +01:00
Sergio Martins
beef3c7fb5
Specialize StateDragging for wayland
...
Introduces StateDraggingWayland. Wayland is the alien, so don't want
to introduce hacks in the existing clean code.
StateDraggingWayland will deal with the wayland workarounds.
Although the impl only has placeholders for now I'm committing it
because it's already an improvement: broken detachment is no longer
possible. Detached windows were going to a random place on screen.
2020-10-14 18:12:25 +01:00
Sergio Martins
52184ca72b
Added StateBase::isActiveState()
2020-10-14 18:01:48 +01:00
Sergio Martins
78cd7c56f7
Minor: Switch order of ifdefs
...
Will want to add a case for wayland too.
2020-10-14 16:41:17 +01:00
Sergio Martins
7805a1dc25
wayland: Use both client and native titlebar
...
native will be used for moving while client for DND
2020-10-14 16:32:10 +01:00
Sergio Martins
92f426e4c0
wayland: Allow floating windows to properly move
...
They move now, but don't drag yet.
2020-10-14 16:25:05 +01:00
Sergio Martins
90f10042fd
Merge branch '1.1' into master
2020-10-14 15:22:04 +01:00
Allen Winter
697c140883
set version to 1.1.0
2020-10-14 10:07:48 -04:00
Sergio Martins
3369816d31
Merge branch '1.1' into master
2020-10-14 14:59:44 +01:00
Sergio Martins
819725351a
Fix -Wweak-vtables warnings
2020-10-14 14:55:28 +01:00
Allen Winter
860cbd29bc
Merge branch '1.1'
2020-10-13 13:24:03 -04:00
Allen Winter
07db9f9a7a
cmake/Python/FindShiboken2.cmake - clean
2020-10-13 13:23:39 -04:00
Allen Winter
2fd4f9ce97
Merge branch '1.1'
2020-10-13 12:51:38 -04:00
Allen Winter
77d7cd7d58
buildsystem - namespace CMake options
...
OPTION_DEVELOPER_MODE => KDDockWidgets_DEVELOPER_MODE
OPTION_BUILD_PYTHON_BINDINGS => KDDockWidgets_PYTHON_BINDINGS
PYTHON_BINDINGS_INSTALL_PREFIX =>
KDDockWidgets_PYTHON_BINDINGS_INSTALL_PREFIX
OPTION_QTQUICK => KDDockWidgets_QTQUICK
2020-10-13 12:28:49 -04:00
Allen Winter
e5cb42c4fe
CMakeLists.txt - improve installing to non-KDAB location
2020-10-13 11:32:12 -04:00
Allen Winter
1fe1d619a9
footer.html - update tag line
2020-10-13 11:30:14 -04:00