Commit Graph

2200 Commits

Author SHA1 Message Date
Kondor Dániel
16d835d6da add copyright for the new files 2024-09-21 21:44:46 +02:00
Kondor Dániel
10e4221d6f class-manager: special casing for Gnome Terminal 2024-09-21 21:26:04 +02:00
Kondor Dániel
e030de4a39 class-manager: clarify in comments why a "fuzzy" matching is necessary for desktop file names 2024-09-21 21:26:04 +02:00
Kondor Dániel
700d702d75 class-manager: handle apps with non-unique command or StartupWMClass
This can happen since the StartupWMClass can have any value (e.g. if an app has multiple launchers for some reason). Also the command in Exec= can be non-unique if the same app has multiple launchers or uses an interpreter that is not parsed by us (e.g. python).

To handle this, we only assume that the app-id (as reported by the WM) and the .desktop file ID are unique (if multiple apps use the same app-id, we cannot do much to distinguish them, although there is already some special casing under X11 where a separate "name" might also be provided).
2024-09-21 21:26:04 +02:00
Kondor Dániel
950c1e6bc0 desktop-file-db: handle non-unique commandline / wmclass better
Desktop file ID should be always unique and this is checked strictly. However, the alternate ID extracted from either the Exec= or StartupWMClass= key can be non-unique (and also match another .desktop file), so handle this case better: we include these cases as well and just leave out the non-unique key.
2024-09-21 21:26:04 +02:00
Kondor Dániel
7d313d7071 remove .exe and .py suffices from app IDs
These are already removed in some, but not all cases, and can be potentially problematic when matching icons or desktop files.

Specific example: winecfg.exe with no .desktop file and winecfg.png as icon.

This can cause issues if two apps use IDs that only differ in their suffix, but this is unlikely.
2024-09-21 21:26:04 +02:00
Kondor Dániel
b91ae9b21d class-manager: handle command line starting with "env" 2024-09-21 21:26:04 +02:00
Daniel Kondor
3b7824fcad class-manager: use the new implementation to look up desktop files 2024-09-21 21:26:04 +02:00
Daniel Kondor
7a7cc3e56b desktop-file-db: new implementation to monitor all installed apps for matching them 2024-09-21 21:26:04 +02:00
Kondor Dániel
bc9db67f0f wayfire-integration: do not call scale if we don't have a valid appid 2024-09-15 16:23:58 +02:00
Kondor Dániel
22231f0f49 desktop-manager: try to lose keyboard focus in present_class 2024-09-15 16:23:58 +02:00
Kondor Dániel
a50c84ed0b user-icon-manager: Fix use after free 2024-09-14 00:36:03 +02:00
Kondor Dániel
80846a0ca9 Simplify the use of g_string_free
Changes from commit 7561cb0 are too complicated and not needed.
2024-08-24 23:07:40 +02:00
Daniel Kondor
11fe921d35 wayland-hotspots: fix compilation warnings 2024-08-20 23:17:20 +02:00
Daniel Kondor
ae9060668f Fix compilation without support for additional Wayland protocols 2024-08-20 23:16:58 +02:00
Daniel Kondor
b95da7d6ce Fix compilation without Wayland support 2024-08-20 23:09:40 +02:00
Daniel Kondor
7561cb0910 Fix compilation with older Glib version
Issue introduced by commit d07d212 as g_string_free_and_steal() is only available for Glib version > 2.76. Provide our own wrapper macro instead.
2024-08-20 23:02:09 +02:00
Kondor Dániel
c64027155d Update links to the development PPA 2024-08-04 20:03:34 +02:00
Kondor Dániel
f63a5a2bca CDWindow: Recompile Vala code
This adds the necessary pragmas to avoid compiler errors on newer versions of GCC and Clang.
2024-08-04 19:54:29 +02:00
Kondor Dániel
47e4ab6453 icon-manager: fix a warning 2024-08-04 19:54:29 +02:00
Kondor Dániel
0812196a5d user-icon-manager: fix warnings for uninitialized attributes 2024-08-04 19:54:29 +02:00
Kondor Dániel
d07d212654 fix warnings related to g_string_free () 2024-08-04 19:54:29 +02:00
Kondor Dániel
1e23f221de wayfire-integration: use the correct app-id for starting scale 2024-08-04 19:54:29 +02:00
Kondor Dániel
6d7549381d class-manager: ensure that we are always storing the class / app-id as reported by the WM / compositor 2024-08-04 19:54:29 +02:00
Daniel Kondor
45b781f98d Merge pull request #26 from dkondor/update_copyright
Update copyright
2024-08-04 19:54:01 +02:00
Kondor Dániel
3bc9677003 copyright: merge MIT and Expat (they have the same text) 2024-08-04 19:39:24 +02:00
Daniel Kondor
7983d74b97 copyright: sync with the Debian package 2024-08-03 19:59:10 +02:00
Daniel Kondor
13fb1516bc Merge pull request #21 from dkondor/fix_rdynamic
build: ensure that symbols used by plugins are available
2024-05-04 17:21:50 +02:00
Kondor Dániel
c1c3c32387 build: ensure that symbols used by plugins are available 2024-05-04 16:13:30 +02:00
Daniel Kondor
1f316862d9 Merge pull request #18 from mtasaka/help-pCategoryCombo-init
Help: initialize pCategoryCombo before used
2024-05-01 00:27:06 +02:00
Daniel Kondor
e65adf355f Merge pull request #16 from dkondor/wayland_new3
All changes required to make the core functionality work on Wayland
2024-05-01 00:26:11 +02:00
Daniel Kondor
beead9cd7d bump version (beta) 2024-05-01 00:14:38 +02:00
Daniel Kondor
4f4a44f4c0 About dialog: add myself as developer and change project URLs to the Github repository for now 2024-05-01 00:14:16 +02:00
Daniel Kondor
37f838c4a9 launcher-manager: fix a warning due to recent changes 2024-04-30 23:38:08 +02:00
Daniel Kondor
78fa40c85e Ensure that backends are initialized with NULLs 2024-04-30 23:38:08 +02:00
Daniel Kondor
a4e3b6a4c3 Allow building with support for both EGL and GLX
This seems to be feasible without issues.

On X11, continue using GLX by default (EGL can be enabled by a command line option, but this should eventually be made a configuration option)
2024-04-30 23:38:08 +02:00
Mamoru TASAKA
ee22cc9227 Help: initialize pCategoryCombo before used
cairo_dock_show_tips() calls _cairo_dock_get_next_tip(pTips) ,
which uses pTips->pCategoryCombo , so this must be properly
created (initialized) before calling _cairo_dock_get_next_tip(pTips).
2024-04-28 13:15:50 +09:00
Kondor Dániel
a3885e9403 user-icon-manager: fix storing invalid paths for launchers 2024-04-25 21:48:58 +02:00
Daniel Kondor
2baa3a9057 egl: do not include wayland-egl-backend.h (this is only needed for debug output 2024-04-21 15:01:22 +02:00
Daniel Kondor
df9ec9e597 bump version to reflect recent ABI changes 2024-04-21 13:53:30 +02:00
Daniel Kondor
946f294a6b desktop-manager: remove old versions 2024-04-21 13:49:13 +02:00
Daniel Kondor
ba64fdce2e build: fix for desktop manager 2024-04-21 13:43:24 +02:00
Kondor Dániel
1a685ace16 user-icon-manager: fix loading of custom subdocks
Previously, when loading a launcher or separator, if it was part of a nonexistent container, it was created as a new root dock. If later encountered as a subdock, the type was changed to a subdock. This does not work with the new positioning and Wayland, since subdocks need to be created as popup windows with a correct parent set. This is not easy to achieve later, so instead, ensure that all subdocks are loaded first, before loading launchers and separators.
2024-04-20 00:25:13 +02:00
Kondor Dániel
4415994d7a menu: fix warning and issues when not showing images 2024-04-19 00:30:25 +02:00
Kondor Dániel
b7dd517029 menu: process the button press triggering a menu also in legacy code 2024-04-19 00:30:25 +02:00
Kondor Dániel
3f851d4534 GUI: do not style context menus 2024-04-19 00:30:25 +02:00
Kondor Dániel
338d404e74 menu: allow creating menu items without custom styling 2024-04-19 00:30:25 +02:00
Kondor Dániel
401fb324c8 menu: remove GTK version checks 2024-04-19 00:30:25 +02:00
Kondor Dániel
454cf82ef5 GUI: avoid deprecated gtk_menu_popup () 2024-04-18 22:48:37 +02:00
Kondor Dániel
5940b3467b surface-factory: update API / ABI 2024-04-18 20:30:26 +02:00