Commit Graph

384 Commits

Author SHA1 Message Date
rubbishzhyic 87f5f74c30 fix: create inputpopup out of workspace
it's created following keyboardfocus;
when surface moved between workspaces, it follows.
2024-05-14 17:44:14 +08:00
rewine f76a80ffed chore: fix build on nixos
log: fix nix
2024-05-14 17:14:40 +08:00
rewine b0ad7e88fc chore: update wayland submodule
Log: update waylib
2024-05-14 13:17:33 +08:00
rewine f20c304216 chore: fix window decoration in touchscreen
Log: better for touch screen
2024-05-14 13:17:33 +08:00
rewine cb8f6f67c8 fix: should not moveable when isMaximize or isFullScreen
log: check status before move
2024-05-14 13:17:33 +08:00
rewine c6f84f28d1 chore: don't check ret != 0 twice
log: tiny clear up
2024-05-09 14:16:02 +08:00
Zhang Dingyuan 118ad68f63 refactor: remove ddm
ddm move to linuxdeepin/ddm

Log:
2024-05-09 13:08:33 +08:00
rubbishzhyic e266972982 fix: thunbs in workspaceList not showing
reason guessed:
if size is zero, normal item may display correct, but shadereffectsource targeting it is clipped or captures 0x0 texture
2024-05-08 14:32:13 +08:00
rubbishzhyic 210b1bb4d2 fix: activate may happen even if invisible
e.g. workspace thumbs needs this behavior
2024-05-08 14:32:13 +08:00
rubbishzhyic 1609c12624 fix: greeter's userInput gain focus on showup
fix greeter's default visible to assign not binding;
use forceActiveFocus with check to avoid breaking hierachy
2024-05-08 14:32:13 +08:00
zhongyic00 9dcb875792 refactor: adopt qt hierachical focus management in renderwindow
depends on https://github.com/vioken/waylib/pull/285;
must check before forceActiveFocus, or else may rob non-sibling's focus state, and focus fall to rootcontentitem
2024-05-08 14:32:13 +08:00
zhongyic00 5bce288c70 refactor: adopt qt hierachical focus management in workspace
control focus in workspace using focusscope & children's focus prop;
ensure exclusive focus by singleton Helper.activatedSurface
2024-05-08 14:32:13 +08:00
rubbishzhyic f782ff0d6e feat: select another surface to focus when current loses
triggered by minimize/close;
triggered by currentworkspace change;
2024-05-08 14:32:13 +08:00
rubbishzhyic ed1597fff4 fix: activate when dragged
set dragged surface to activated
2024-05-08 14:32:13 +08:00
rubbishzhyic 16e733f43f refactor: simplify stacktoplevelhelper's signal connection
using a repeater, note use `||null` to avoid `undefined`;
move funcs out of connOfSurf;
unified some naming
2024-05-08 14:32:13 +08:00
rubbishzhyic dcd779e734 fix: monitor surface's size change
surfaceitem has 0 size when created, so not visible in grid layout;
more robust filterproxymodel
2024-05-08 09:55:34 +08:00
rubbishzhyic b5b53e214f feat: dynamic eqh-grid layout
manually calculate x,y;
has risk in state sync of model/repeater/layoutdata;
wrong initial state
2024-05-08 09:55:34 +08:00
rubbishzhyic c47d974f74 fix: multitaskview model sync with surfaces change
add some missing signals in filtermodel;
fix undefined/null check
2024-05-08 09:55:34 +08:00
rubbishzhyic 98819162ca feat: impl multitaskview drag interaction & animation
using draghandler & self-impl drag manager;
using resize ratio driven by Ychanged for animation;
bug exists that scaling makes mouse out of visual item
2024-05-08 09:55:34 +08:00
rubbishzhyic 0d7c4e2b32 feat: better multitaskview hierachy
move workspaces list into multitaskview's per output placementItem
2024-05-08 09:55:34 +08:00
rubbishzhyic ac08bab2b4 fix: workspace model dynamic change
fix small bugs involving workspace surfaces model change;
eqhgrid initialization needs better timing
2024-05-08 09:55:34 +08:00
rubbishzhyic d0098ac2ed feat: add workspace list to multitaskview
rough impl, hierachy needs to be rearranged
2024-05-08 09:55:34 +08:00
renovate[bot] 3defcb764a chore(deps): lock file maintenance 2024-05-08 09:41:27 +08:00
Zhang Dingyuan 236607ae37 chore: don't auto enable output
cherry-pick waylib f5a380364608c99ce8eab7ca5c24d344a49137ae

Log:
2024-05-07 18:45:30 +08:00
renovate[bot] f047d092e7 chore(deps): update waylib digest to b3fe4e2 2024-05-07 18:16:52 +08:00
renovate[bot] fadd9b999c chore(deps): update waylib digest to 303fced 2024-05-07 10:47:03 +08:00
rewine 479fb5ef4e feat: check if render backend is available
log: https://github.com/vioken/waylib/pull/277
2024-04-16 08:28:25 +00:00
rewine 76739da0a6 fix: error cursorshape in title bar
1. must set cursorShape for HoverHandler to restore change
2. TapHandler don't need set cursorShape
2024-04-16 08:10:21 +00:00
rewine 53c3aab8e3 fix: not link wayland-client in opensuse
log: just use pkgconfig to find
2024-04-16 08:09:20 +00:00
groveer c14e45183f fix: support qt 6.7
as title

Log:
2024-04-16 08:05:00 +00:00
rubbishzhyic cc28086afb fix: keyboardfocus should not follow activeItem
activated surface may lose focus in qt when other view is on
2024-04-16 09:54:20 +08:00
rewine be4abe7b84 fix: can't preview xwayland item
log: use more common surfaceitem
2024-04-12 15:29:49 +08:00
rewine ad24e04b1e feat: make treeland foreign toplevel manager also work for xwayland
log: this allow dock get xwayland surface info
2024-04-12 15:29:49 +08:00
rewine 5f76e8ff62 fix: XWaylandSurface can't close
log: not only xdgTopToplevel surface need close, XWaylandSurface also call this func
2024-04-12 15:29:49 +08:00
renovate[bot] a2280a9073 chore(deps): lock file maintenance 2024-04-12 13:56:28 +08:00
renovate[bot] 77ede0b789 chore(deps): update waylib digest to 1f6d79f 2024-04-12 13:55:23 +08:00
rubbishzhyic 994852627e fix: ssd's clipped content invisible in shadereffectsource when sourceitem not visible
use opacity=0 & explicit mask effect item to avoid
2024-04-11 17:43:43 +08:00
renovate[bot] 60a321b063 chore(deps): lock file maintenance 2024-04-11 17:41:45 +08:00
rubbishzhyic e80e3ea5f0 fix: trigger resize on mode change
if surface mapped when not visible, it will only change mode to sizefromsurf, but not applied, so has zero size
2024-04-11 17:40:34 +08:00
justforlxz f4a2ba703b feat: add new window animation
This function is for demonstration purposes only, and there is still work to be done.

Log: 支持新窗口动画
2024-04-11 14:31:35 +08:00
rubbishzhyic 90ecd78cae fix: hide surfaces when previewing
lift opacity control to parent of toplevelContainer;
add prop to notify dockpreview's previewing
2024-04-03 18:00:26 +08:00
rubbishzhyic 870f7ae9b4 feat: dock adapt surfaces model
refactor using a generic filterModel;
fix crash when previewing on surface exit;
fix type errors about `surface`or `surfaceItem`
2024-04-03 18:00:26 +08:00
rubbishzhyic dafc4f7a99 fix: activated workspace follows surface activation
activated workspace change only driven by surface activation;
fix request activate var type
2024-04-03 18:00:26 +08:00
rubbishzhyic 9d42b95647 feat: better interaction
shortcut for move win to neighbor workspace;
2024-04-03 18:00:26 +08:00
rubbishzhyic d78aa74ab8 feat: winswitcher adapt surfaces model
use workspace's surfacesModel
2024-04-03 18:00:26 +08:00
rubbishzhyic bf287655a4 fix: sync state of surfacesModel
fix child not moved on destruction due to implicit iter-modify-conflict;
fix missing stack order change due to uncontrolable order of activatedSurfaceChanged/model append;
small fixes due to incomplete refactor
2024-04-03 18:00:26 +08:00
rubbishzhyic 7ced54f7ac feat: create workspaces' surfaces model
sync state with buffered parentChange;
adapt multitaskview model;
move surfaces to default(No.0) when destroyed
2024-04-03 18:00:26 +08:00
rubbishzhyic 88078ddf27 feat: seperate model& logic to workspaceManager
wsmngr controls workspace add/del/reorder, provides mapping between static wsid & dynamic relativeId;
add some dbg items
2024-04-03 18:00:26 +08:00
rubbishzhyic 6571d99133 feat: impl basic workspaces
use hidden qobject parent item and reparent to visual parent;
support shortcut to change workspace;
buggy models & toplevels hidden
2024-04-03 18:00:26 +08:00
rubbishzhyic 0e8bfbb3cb feat: use qml inputhandlers to handle events
easily support drag, dblclick handling
2024-04-03 16:29:58 +08:00