1573 Commits

Author SHA1 Message Date
tsic404
7ed222aadb fix: datetime font size error
make font size adjusted by height or width not follow system font size

log: as title
2023-09-06 06:17:24 +00:00
tsic404
3cbb828863 feat: make unrecongnized application not dock on dde-dock
some unrecongnized app like electron app will unable to start when next click.
and custom desktopfile will not be supported by new applicationmanager1

log: not dock unrecongnized application
2023-09-06 05:04:50 +00:00
tsic404
4b9b283e5c fix: dock coredump when update recentApp invisible
itemRemove signal connect direct to taskmanager thread, and it will update recentApp visible status
which access qwidget in non-main thread.

log: make recentApp visible status update in main thread.
2023-09-06 05:04:50 +00:00
tsic404
e3c3dfe94d feat: when new am avaliable do not load custom desktopfile
log: as title
2023-09-06 05:04:50 +00:00
tsic404
75ebd8a0f2 feat: use new am dbus interface
log: as title
2023-09-06 05:04:50 +00:00
chenhongtao
5aa27ee40f fix: click preview container not active window
it connect to a empty signal

Log:
2023-09-05 07:59:21 +00:00
chenhongtao
2ccf74dd35 chore: support qCDebug
Log:
2023-09-04 15:19:20 +08:00
chenhongtao
41d27c5ad7 chore: commit unused qdebug, and update log format
Log:
2023-09-04 15:19:20 +08:00
tsic404
d1b37b045a fix: add lost windowSizeChanged Signal
log: as title
2023-08-29 02:04:27 +00:00
tsic404
e4b9d8e695 fix: no displayModeChanged signal
log: as title
2023-08-25 01:29:45 +00:00
tsic404
0e5aab95f5 fix: dock autohide even trayGridWidget show
log: prevent dock hide as dde-launcher show shen trayGridWIdget show
2023-08-24 05:13:40 +00:00
tsic404
9f71814849 fix: add hideModeChanged signal
log: as title
2023-08-23 03:01:33 +00:00
tsic404
e169dcf4de fix: xebmbedtary click get no response in Efficient mode
The tray in fashion mode is not the same object as the tray in efficient
mode, and only one xembedtray is vaild, so there will be a contention
between the two. The latter xembedtray who call reparent() will be the vaild
one. So drag from expandiconwidget, the xembed tray click in the efficient
mode get no response while the tray click get response when switching from
the fashion mode.

log: make tray(both fashion and efficient mode) to be one object
2023-08-18 02:19:23 +00:00
tsic404
7f554a1da5 fix: coredump when open jetbrains-toolbox
initMenu failed to create menu which make m_menu is still nullptr

log: as title
2023-08-07 04:27:49 +00:00
tsic404
3da8943417 fix: not show with launcher when hide
add lost launcherFront dbus signal

log: as title
2023-08-04 16:59:05 +08:00
tsic404
e4dde7b5a1 fix: click always activate application in TrayGridWidget
expandiconwidget get focus when click tray, so it will alway activate application because lost focus.

log: set WindowDoesNotAcceptFocus for TrayGridWidget
2023-08-04 08:55:21 +00:00
tsic404
3a5f29ca28 fix: applicationpreview scale not keep aspectratio
drawPixmap will scale pixmap to fit imageRect, but not KeepAspectRatio

log: as title
2023-08-04 05:22:20 +00:00
tsic404
9011e4a125 fix: plugin set show on dock more times, also need same times call unshow
Duplication was kept when saving the configuration, the same plugin was saved multiple times,
but only one was removed when it was removed

log: remove duplication when save dconfig
2023-08-02 02:02:40 +00:00
tsic404
9f14b5f0a8 fix: some app do not display
Current entryRemove and entryAdded connection is not thread-safe. Although entryRemove before entryAdded sended,
entryRemove slot do later than entryAdded slot, which make added entry (later signal) removed by previous entryRemove signal.

log: make entryRemove and entryAdded connecttion thread-safe.
2023-08-02 01:43:00 +00:00
tsic404
1f2d150792 fix: no positionModeChanged signal
add positionModeChanged signal to dbus

log: as title
2023-08-02 01:42:34 +00:00
tsic404
d2164e99ec fix: official chrome unable to be identified
window_patterns.json used for app in store, and it return cn.google.chrome,
whcih is not installed. So, it means that identifyWindowByRule may return a invalid appinfo.
Return nullptr if it's invalid appinfo.

implement DesktopInfo::isInstalled, and use std::copy instead of raw loop

log: fix identifyWindowByRule return a invalid appinfo
2023-07-25 03:13:41 +00:00
tsic404
167a334142 fix: dock entries not update after displaymode changed
taskmanager not connect to display mode changed signal, so it not update entries

log: as title
2023-07-24 06:52:40 +00:00
tsic404
068f35e405 chore: remove std namespace
log: as title
2023-07-24 06:52:40 +00:00
tsic404
7c897e6c96 fix: dock size error when dock positon changed
dockSize not right when position changing, height or width is current potion not changed into

log: correct dockSize when dock position changed
2023-07-18 07:35:19 +00:00
tsic404
9de057e2cc refactor: add taskmanager from dde-application-manager
1. taskmanager used to identify which entry should map to window
  in x11 environmrnt, listen to xevent in anohter thread, and handle those event
when window create, destory, changed. use some way to identify which entry(desktopfile)
should mapped to changed window.
  in wayland, connected plsamawindow signal(window created destoried.
2. use taskmanager instead of dbus in old dock code

log: as title
2023-07-18 07:35:19 +00:00
tsic404
5f6cacdf2a refactor: Rewrite the calling method of dock settings
Rewrite the calling method of dock settings, using the new dconfig interface instead of AM's dbus interface

log: as title
2023-07-18 07:35:19 +00:00
tsic404
eb33819302 refactor: rewrite encapsulation of the dconfig
log: as title
2023-07-18 07:35:19 +00:00
tsic404
f48785876e chore: remove QAccessible
tests has been disabled, and QAccessible is not used in right ways

log: as title
2023-05-31 03:21:28 +00:00
tsic404
223a9df0d7 fix: incorrect trash status when deleting file in other partition
The old implementation only monitor the trash folder in user's partition
It will make other partition's recycle bin out of monitor,
Now use GIO to monitor all trash and empty trash

log: Fix the trash icon status might out-of-sync in some cases
2023-05-31 03:21:28 +00:00
tsic404
c1aa1cf13c fix: adjust tray icon size to 20
16 pixel size will make tray icon be cutted and
make it to 20 will reserve 2 pixels for each side

log: make tray icon size to 20
2023-05-29 01:55:30 +00:00
tsic404
7928cd6a2e fix: make keyboard layout plugin size fixed
indicator icon size shou be fixed same as other tray icon, should not changed follow system font size.
add text change info from sourceIndicatorWidget to display indicatorWidget

log:
2023-05-29 01:55:30 +00:00
YeShanShan
5894cc8a7d fix: DockPopupWindow losing active status
It causes that child widgets doesn't have focus even though
calling setFocus.
  It was introduced by ec5c447264087420d8ec80a18e7f2bcc4f683a74.
because that DArrowRectangle has activateWindow when show.

Issue: https://pms.uniontech.com/bug-view-172773.html
2023-05-24 16:50:36 +08:00
tsic404
ab58721930 fix: dock position changed from left to bottom no date display
update dateFont size when DateTimeDisplayer size changed.

log: fix no date display on dock when postion change from left to bottom
2023-05-22 16:00:58 +08:00
chenhongtao
a36ee58753 chore: use version from cmake
Log: use version from cmake
2023-05-11 15:44:40 +08:00
tsic404
f0108d1c41 fix: timedate size issue
when the sum of the pixel dimensions of the time font and the date font is the same as the height,
leave some space so the text doesn't look too crowded.

log: adjust timedate size
2023-05-11 14:03:29 +08:00
tsic404
83f264720c fix: popupwindow misjudgment
content should not more width than screen otherwise popupwindows must be out of bounds screen

log: as title
2023-05-11 13:50:17 +08:00
tsic404
15e5a0fadb fix: popupwindow is out of bounds at the edge of the screen
set the minimum value of x of popupwindow to the current screen
and the maximum value to the maximum x of the current screen

log:
2023-05-11 05:03:37 +00:00
tsic404
1be4bebe0a fix: trash do not display when dock hide and readded into dock
relayout after updateToolArea otherwise plugin item size will set to 0

log:  only relayout after update visiable
2023-05-06 17:20:32 +08:00
chenhongtao
24ff57eb70 fix: popupwindow need click destkop twice to hide
Log: only not hide it when focus widget is QLineEdit
2023-05-06 16:01:32 +08:00
tsic404
5908ee1605 fix: set radius for tray inner window
make m_platformWindowHandle protected so subclass can connect to windowRadiusChanged signal,
which make traymainwindow radius changed follow mainwindow

log: make trymainwindows radius changed follow mainwindow
2023-05-06 13:16:56 +08:00
Zhang Dingyuan
dc77b8904d fix: window radius is not set
as title
2023-05-05 14:52:31 +08:00
tsic404
50bbc3cf01 fix: after screen-recorder finished, dock will coredump
When screen-recorder finish recording, will notify dock update item, and dock
will clean all item and readded back. But m_dragInfo->dockItem still point to
old item which has been cleaned.
So dock will coredump, while using this pointer to judge item can drag or not.

log: update m_dragInfo->dockItem pointer when dock itemCountChanged.
2023-05-05 05:21:49 +00:00
Hillwood Yang
9bfcf4580e fix: add missing library links
add missing library links

Log: Need link these libraries to make sure the build will be successful
2023-05-05 10:44:39 +08:00
zsien
1b5f9554d1 fix: fcitx5 keyboard tray icon blur
Choose the pixmap that fits best in size.
Fixes linuxdeepin/developer-center#4185
2023-04-27 17:13:18 +08:00
tsic404
e6dbaa69bb fix: update appitem position when showing from hide
dock request to hide, set old position to appitem.
so need to update appitem position when show from hide state

log:
2023-04-21 01:36:08 +00:00
tsic404
532350f48d fix: unable drag desktop into dock
RequestDock dbus call, only local path passed into

log: fix unable drag desktop info dock and make it docked
2023-04-20 05:52:34 +00:00
chenhongtao
384fdc46ba chore: bad code fix
bad indentation of else and unused count value

Log: find some bad code and fix
2023-04-18 11:33:54 +08:00
tsic404
b2efe239b6 fix: SNI tray menu unable to click
when first left click SNI tray menu and app without activate to show, will get a dbus error and recall right menu
this will case menu unable to click, move recall to another thread

log: fix SNI tray menu unable to click
2023-04-14 14:09:29 +08:00
tsic404
7abeebc7eb fix: fix timedate display widget size error
when font size changed, timedate widget need to update width and height.
call DFontSizeManager only when font size changed

log: fix timedate widget size erorr
2023-04-14 11:10:22 +08:00
chenhongtao
c2ba4e4971 fix: when there is focus on dockpopupwindow, it hide
Log: fix when there is focus and dockpopupwindow hide
2023-04-12 09:08:32 +00:00