Ilya Fedin
577f4b6271
Don't check com.canonical.Unity for the counter
...
It seems there's a race condition when Telegram is auto-started on Plasma and it doesn't hurt to issue the signal always, so just remove the check
2022-12-09 09:19:00 +04:00
23rd
4fabb3f2a2
Replaced some qsl with u""_q literal.
2022-11-30 17:17:14 +03:00
Ilya Fedin
768fc9b8f6
Use the new Glib::Variant qint64/quint64 compatibility with old code
2022-11-18 20:40:33 +04:00
Ilya Fedin
f542a026ec
Add _GTK_APPLICATION_ID support
2022-11-07 18:16:49 +04:00
Ilya Fedin
1336a7149b
Update glibmm to latest version
2022-11-03 14:45:01 +04:00
Ilya Fedin
feb6107ce6
Qt 6.4 supports window activation with tray on Wayland
2022-09-02 21:27:41 +04:00
Ilya Fedin
2477b35b42
Move tray availability logging to the appropriate class
2022-06-14 16:36:44 +04:00
Ilya Fedin
4d997a26b0
Don't update global menu on Linux without focus widget
...
The window loses focus when menu is open and edit options are deactivated
2022-06-14 16:36:44 +04:00
Ilya Fedin
4410aeb3eb
Make QMenuBar on Linux work without private API
2022-06-14 16:36:44 +04:00
23rd
7bf9db8644
Fixed logging out with opened non-primary windows.
2022-06-08 11:59:30 +03:00
23rd
0e16a50bbc
Completely removed common and platform code for tray from main window.
2022-05-03 04:25:36 +03:00
23rd
27c5c4b8f2
Removed Linux tray implementation from main window.
2022-05-03 04:25:36 +03:00
Ilya Fedin
daaa654065
Get rid of unneeded MainWindow::Private class on Linux
2022-03-05 16:47:38 +04:00
Ilya Fedin
8db567ba7a
Don't hold a dbus connection unecessarily in main window
2022-03-05 16:47:38 +04:00
Ilya Fedin
805e6de1dc
Add global menu event hook on Linux just like on macOS
2022-03-05 16:47:38 +04:00
Ilya Fedin
1c8d4ee7ab
Get rid of Q_OBJECT in HistoryInner
2022-03-05 16:47:38 +04:00
Ilya Fedin
ceb323ac7c
Use QMenuBar instead of own global menu implementation on Linux
...
This is another attempt of 79f96480c2
2022-01-22 21:18:37 +04:00
Ilya Fedin
b65d40a22b
Get rid of custom SNI implementation
...
XDG is inventing new tray specification, so SNI will be outdated soon and it's better to just use QSystemTrayIcon.
I believe all the major drawbacks of QSystemTrayIcon are solved and we can live with minor ones.
Given the planned MainWindow refactoring, it seems it's the best time to do that.
2022-01-22 21:18:37 +04:00
Klemens Nanni
078a2af385
Fix -Wunused-const-variable warnings under DESKTOP_APP_DISABLE_DBUS_INTEGRATION
...
OpenBSD builds without dbus integration (for now); this fixes the warnings.
Those variables have been introduced in multiple commits.
2021-12-29 20:16:04 +03:00
Ilya Fedin
33b7ac209e
Don't use QPlatformNativeInterface-based XCB::GetRootWindowFromQt
2021-12-13 14:24:34 +04:00
Ilya Fedin
8fda1169e5
Get rid of Platform::MainWindow::psLinux*
2021-11-26 18:28:37 +04:00
Ilya Fedin
53305f5f46
Fix paste check in Linux global menu
2021-11-26 18:28:37 +04:00
John Preston
aef45b3a1d
Refactor icon unread counter painting.
2021-11-02 20:12:57 +04:00
Ilya Fedin
c50a5db277
Restore dbusmenu-qt dependent functionality with Qt 6
2021-10-24 20:01:55 +04:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
Ilya Fedin
ac86f3e5bd
Use Communications category for tray icon
...
Since tdesktop fits it
2021-08-10 15:42:21 +03:00
Ilya Fedin
d986e70a89
Fix global menu on 64-bit systems with X11
...
When Wayland support for global menu was added (0b86feeeb5
), X11 support was broken since QWindow::winId returns WId what is a quintptr that expands to uint32 on 32-bit and to uint64 on 64-bit, while AppMenu d-bus service accepts only uint32.
2021-07-28 23:41:36 +03:00
Ilya Fedin
1ebf27bfa1
Switch MainWindow to Ui::RpWindow
2021-07-28 18:05:39 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
Ilya Fedin
6f031a715e
Revert "Use QMenuBar instead of own global menu implementation on Linux"
...
This reverts commit 79f96480c2
.
2021-07-05 21:01:20 +03:00
Ilya Fedin
c3fb392906
Clean dbus-specific code in main_window_linux.h
2021-06-29 10:30:48 +03:00
Ilya Fedin
a59bfdb2f8
Fix handleNativeSurfaceChanged when dbus integration is disabled
2021-06-29 10:30:48 +03:00
Ilya Fedin
79f96480c2
Use QMenuBar instead of own global menu implementation on Linux
2021-06-29 10:30:48 +03:00
23rd
b422ec025e
Removed Ui::show from classes that have pointer to Controller.
2021-06-17 10:57:45 +04:00
23rd
707b36dc12
Moved DBIWorkMode to Core::Settings.
2021-06-16 09:31:32 +03:00
23rd
5334372671
Moved WorkMode global variable from facades to core settings.
2021-06-16 09:31:32 +03:00
Ilya Fedin
c6dcc57c5e
Set _KDE_NET_WM_DESKTOP_FILE on X11
2021-05-31 20:30:51 +03:00
Ilya Fedin
3cf739eca9
Use event filter to get surface expose event
2021-05-17 10:00:01 +03:00
Ilya Fedin
cfee688feb
Replace call_delayed with InvokeQueued in MainWindow::handleVisibleChanged
2021-05-17 10:00:01 +03:00
Ilya Fedin
0b86feeeb5
Implement appmenu on Wayland with org_kde_kwin_appmenu protocol
2021-05-17 10:00:01 +03:00
Ilya Fedin
434ef34378
Implement taskbar icon hidding on Wayland with org_kde_plasma_shell protocol
2021-05-17 10:00:01 +03:00
Ilya Fedin
0d96657c33
Fix check for disconnected error
2021-04-30 08:43:25 +03:00
Ilya Fedin
c08a148baf
Fix build on 32-bit systems
2021-03-23 18:21:07 +03:00
Ilya Fedin
e493ab12dc
Get rid of GetLauncherFilename
...
Use QGuiApplication::desktopFileName directly instead
2021-03-12 15:44:37 +04:00
Ilya Fedin
cc736158a6
Get rid of QByteArray in djbStringHash
2021-03-10 09:46:13 +04:00
Ilya Fedin
092b6e7c18
Fix spaces on ends of lines
2021-03-05 13:31:56 +04:00
Ilya Fedin
b08c33cf8a
Move remaining usage of dbus to glibmm in main_window_linux
2021-03-04 12:07:54 +04:00
Ilya Fedin
8042a83fd2
Move glib usage to glibmm
2021-03-04 12:07:54 +04:00
John Preston
54f06740d5
Remove some App::wnd() calls.
2021-03-03 11:29:26 +04:00
Ilya Fedin
9b88f816d6
Use new Platform::IsX11
2021-02-24 21:41:14 +04:00