Commit Graph

150 Commits

Author SHA1 Message Date
Corentin Noël
fe1d3d031f
Add posix to the list of Vala dependencies (#1472)
We are now exposing Posix.pid_t in the public API for the Application management.
2022-10-13 08:07:38 +01:00
Corentin Noël
7c540a2a06
App: Implement Applications Management (#1241)
This allows us to completely replace libbamf in some specific cases (like system shell elements)

Co-authored-by: Danielle Foré <danielle@elementary.io>
2022-10-10 17:47:37 -07:00
David Hewitt
47c4e8346b
DnD: Stop using captured_event in Mutter 42 (#1468) 2022-10-06 13:32:04 -07:00
José Expósito
f74d8fdad5
Granite drawing removals (#1428)
* Drawing: Migrate functions removed from Granite 7

Some drawing utilities used by Gala were removed from Granite 7:
https://github.com/elementary/granite/pull/603

Add them to Gala.

* Drawing: Use drawings functions from Gala instead of Granite
2022-05-22 18:02:45 +00:00
Corentin Noël
9641704ec7
Use Clutter.Grab with Mutter 42 (#1407) 2022-04-21 15:33:24 -07:00
Jeremy Wootten
7a13e044bb
Fix compile warnings (#1384)
* Fix GObject property warnings

* Fix hiding set_size function

* Fix duration type conversion

* Fix faulty conflict resolution

* Do not clamp duration

* Reduce indentation

* Return unowned region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned custom region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned keybinding filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Return unowned Xrectangle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* Codestyle

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var filter

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

* unowned var custom_region

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>

Co-authored-by: Gustavo Marques <pushstarttocontinue@outlook.com>
2022-04-05 10:01:39 +00:00
luzpaz
faac78782c
Fix various typos (#1310)
* Fix various typos

Found via `codespell -q 3 -S *.po`

* Fix deamon->daemon

Co-authored-by: Jeremy Wootten <jeremy@elementaryos.org>
2021-11-20 16:56:53 +00:00
Corentin Noël
c0ab9516dc deps: Put the right libmutter name in the .deps file
Avoid double inclusion in plugins.
2021-08-31 16:41:02 +02:00
Corentin Noël
4aec79ae0d Reduce the number of warnings
No functional change.
2021-08-18 05:49:00 +00:00
José Expósito
92bc6b8a1e
Fix #1074: Window menu says Unmaximize when tiled (#1087) 2021-03-29 13:39:11 +02:00
José Expósito
ed77206168
Fix #955: Add Take Screenshot to the header context menu (#1068) 2021-03-05 07:48:28 +01:00
JoseExposito
104f819e76 Switch workspace animation use GestureTracker 2021-03-01 10:25:46 -08:00
José Expósito
3a0c856d7a
Multitasking view 1:1 switch desktop animation with scroll events (#1051) 2021-02-22 16:34:43 -08:00
David Hewitt
9d15793049
AppCache: Rebuild in a thread (#1021) 2021-01-17 16:35:59 +01:00
José Expósito
49d35796d0
#989: Multi-touch gestures have no upper speed limit (#1006)
* Initial test

* #989: Add maximum velocity to gesture update

* Simplify the GestureAnimationDirector moving the min/max times to the constructor

* Fix merge conflict

* Revert change
2021-01-06 14:15:06 -08:00
Corentin Noël
c74298b49c Bump Mutter to 3.36 2021-01-04 13:33:03 -08:00
Corentin Noël
57c3608c51 Bump Mutter to 3.30 2021-01-04 13:33:03 -08:00
José Expósito
933ca7bf7f
Multi-touch support (#983) 2020-12-16 13:04:52 -08:00
Corentin Noël
381e1d6474
Initial support for mutter-7 (#854)
* meson: Add support for libmutter-7 in the build system

This commit only adds support within the build system, no further attempt to make it build has been tried.

* mutter: Update the .vapi for libmutter-7

* Fix vapi syntax

* Make it work with mutter-7

* Re-enable PIP plugin

* Fix screenshot code

* Fix type

* Cleanup workspaces sooner

So we don't see the workspace removed animation on login

Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
Co-authored-by: David Hewitt <davidmhewitt@gmail.com>
2020-11-17 12:11:52 +01:00
David Hewitt
dd21895437
pip: Use DragDropAction for move (#959) 2020-11-09 10:15:00 +01:00
Julian Raschke
f1be427cc8
Rename 'Minimize' to 'Hide' (#953) 2020-11-03 12:34:59 -08:00
David Hewitt
3755df80b3
Replace BAMF for icon loading (#939)
* Initial work to replace window matching and icon loading

* Support file icons

* Start caching desktop file info, support StartupWMClass

* Remove bamf vapi

* Listen for changes to desktop files

* Rate limit cache updates

* Remove bamf from README

* Pixbuf caching and gapp matching

* Also cache unknown icons

* Get windows from group

* Add a fallback for failing to load icon

* Check sandbox prefixes

* Switch icon cache class to struct
2020-10-27 12:15:57 -06:00
Cassidy James Blaede
7573fa7d00
Add editorconfig; fix whitespace (#881) 2020-07-20 22:06:57 +02:00
Daniel Foré
9897f02702
Utils: Remove unused scale (#841) 2020-06-16 14:47:08 +01:00
Javier Goday
05b445f0ca
fix Gala.Utils.create_close_button and Gala.Utils.create_refresh_button (texture.set_size) (#784) 2020-04-26 15:13:54 +02:00
David Hewitt
2732d81c22
Mutter 3.36 support (#751) 2020-03-12 23:38:28 +01:00
Corentin Noël
2d319439ee
meson: Make the build system more compact and resilient (#739) 2020-03-06 07:47:25 -08:00
Daniel Foré
cdd3bdcfb0
Utils: Remove unused get_next_window and get_icon_for_window (#691) 2020-01-14 09:58:52 -08:00
Daniel Foré
7a76ae3028
Use one true brace style in src (#685) 2020-01-09 12:29:01 -08:00
Corentin Noël
2c22f2de80 Make Mutter 3.28 the minimum libmutter version (#640) 2019-11-20 09:10:51 -08:00
Corentin Noël
0f0724c97a Adapt to mutter 3.33 (#566) 2019-10-31 22:22:38 +01:00
Keli Grubb
49d1d8ffab 👕 Lint lib directory with vala-lint (#607) 2019-09-05 22:18:43 +02:00
Corentin Noël
50694796d4 Remove duration settings and use constants (#513) 2019-07-21 10:55:23 +02:00
Peter Uithoven
dd98e0069f Only use cached buttons when height matches, fixing dpi switch issue (#480) 2019-06-25 02:22:19 +02:00
Corentin Noël
fe52fb1288 data: Add gala.css and texture.png to GResource 2019-01-23 21:58:01 +01:00
Peter Uithoven
cf8d4556d0 pip: Adjust button size and margin for screen dpi scale (#396)
Add reusable Util.get_ui_scaling_factor()

Fixes: #395
2018-11-22 00:24:47 +01:00
Felipe Escoto
fe9f48ae09 Fix Multimonitor windows preventing workspaces from closing (#357)
Use on_all_workspaces instead of is_always_on_all_workspaces()
2018-10-17 16:56:41 +02:00
David Hewitt
1970bac81e Use separate daemon to display GTK window menus (#179)
* Use separate process to create window menus

* Reduce line count with code style changes

* Fix some formatting

* Code style fixes

* Prevent menu closing instantly after open

* Resolve warnings in new code

* Remove GLib namespace prefix from exceptions

* Update main.vala

* Remove timeout by positioning the menu outside of the mouse pos

* daemon: Use lambda as popup callback

* io.elementary.gala -> org.pantheon.gala

* org.pantheon.gala.daemon -> gala-daemon

* Clean up

* Fix daemon object path

* Some cleaning
2018-09-10 16:16:52 -06:00
Corentin Noël
985baa08bd Ensure that the correct workspaces are removed (#269) 2018-06-07 22:15:53 +02:00
Adam Bieńkowski
f02b776d95 Provide action to switch to the last workspace (#229) 2018-05-01 19:59:11 +02:00
Rico Tzschichholz
a71e8c137b lib: Add missing datarootdir in pkg-config file 2018-03-18 17:06:21 +01:00
Rico Tzschichholz
95aa47d8f4 Drop autotools buildsystem 2018-03-18 16:11:11 +01:00
Rico Tzschichholz
ffcde2a31a meson: Use install_rpath as needed (#200) 2018-03-14 02:46:38 -05:00
Corentin Noël
42e7617554 meson: Add support for valadoc 2018-03-11 19:26:03 +01:00
Rico Tzschichholz
ded8fd9345 Initial meson support 2018-03-11 19:26:03 +01:00
David Hewitt
e39e5591da Make window-switcher compatible with HiDPI (#154) 2018-02-14 21:17:31 +01:00
Corentin Noël
9b68c4b664 notify: Make notifications to be HiDPI compatible 2017-09-28 16:47:02 +02:00
Rico Tzschichholz
b839b2f356 lib: Add GResource support and load close/resize button images from it 2017-07-18 19:13:47 +02:00
Rico Tzschichholz
80f2ac39de utils: Add resize button methods and make use of them in pip 2017-07-18 19:13:47 +02:00
Rico Tzschichholz
12788ef9ce Drop support for plank < 0.11.0 2017-07-18 19:06:46 +02:00
Corentin Noël
9665ae90d6 data: Replace png with svg files 2016-12-31 09:08:58 +01:00
Rico Tzschichholz
aa813412c4 lib: Drop stray clutter-gtk-1.0 reference 2016-11-15 17:56:40 +01:00
Rico Tzschichholz
9469155b44 Add support for mutter 3.22
Replace clutter-gtk-1.0 with native clutter-1.0 API and use mutter's
internal clutter/cogl libraries if needed.
2016-11-15 17:13:39 +01:00
Rico Tzschichholz
2fe0fbadf7 Drop support for mutter < 3.14.4 2015-11-11 20:56:40 +01:00
Rico Tzschichholz
4e50b6639e Add support for plank 0.11 api 2015-11-03 16:26:40 +01:00
Tom Beckmann
1b4ec92676 no assignment in if 2015-03-11 14:43:19 +01:00
Tom Beckmann
27b43cc32c improve flash prevent code, bump snap-duration to 250ms, actor-snapshot can be NULL 2015-03-11 14:23:10 +01:00
Tom Beckmann
481da2cc71 implement smooth (un)maximize, may have some small offsets currently 2015-01-05 16:46:27 +01:00
Rico Tzschichholz
ebaa88ed2e windowmanager: Don't copy delegates 2015-03-04 12:07:30 +01:00
Rico Tzschichholz
3fc7213841 utils: No error to catch here 2015-03-04 12:07:09 +01:00
Rico Tzschichholz
74a3b19f9d docs: Fix build and some warnings 2015-03-04 11:50:18 +01:00
Rico Tzschichholz
f76a30d9a3 build: Fix make distcheck 2015-03-04 11:22:55 +01:00
Rico Tzschichholz
638849eb2b build: Let gala provide a public library for 3rd party plugin development 2015-03-04 10:51:43 +01:00
Rico Tzschichholz
d588328a03 Refactoring to avoid nested classes and multi-class files
Additionally don't expose plank in libgala
2015-03-04 09:36:08 +01:00
Tom Beckmann
3e417dcfa8 update windowswitcher to use the latest functionality provided in mutter, improve its startup and code structure, add destroy-on-unmanaged properties to WindowIcon and SafeWindowClone 2014-07-19 00:42:06 +02:00
Tom Beckmann
d62757998e remove Gee as a depedency for libgala, use GVariant instead of GValue for ActivatableComponent.open 2014-08-24 20:34:00 +02:00
Tom Beckmann
438e42e1a7 forgot copyright header 2014-07-20 22:19:15 +02:00
Tom Beckmann
88d2858736 forgot ActivatableComponent 2014-07-20 22:16:21 +02:00
Tom Beckmann
1e684669fb Add docs to WindowManager interface, rework modal mode handling API and add functionality to control keybinding filtering
Add interface to properly replace core components.
2014-07-20 22:02:34 +02:00
Tom Beckmann
cc244921f9 lib: remove public functions for accessing InputArea, fix input area assignment
Rename now internal InputArea.HOTCORNER to DEFAULT for a more fitting description since
it is used by plugins as well and not just HOTCORNERS in the "default" mode.
Fix InputArea.NONE being always assigned when no hotcorners are configured.
Plugins won't need access to the InputArea functions since they're all handled within
the wm and reconfigured when the plugin changes its area or the wm's modal mode.
2014-08-31 19:09:38 +02:00
Tom Beckmann
894d81f7a3 lib-utils: fix build by making cache cleaning public again 2014-07-18 10:23:38 +02:00
Tom Beckmann
25cd232fdc lib-plugin: make region property private 2014-07-18 10:15:31 +02:00
Tom Beckmann
78ecba40bd lib-utils: add docs, drop css utility, make pixbuf cache methods internal 2014-07-18 10:07:12 +02:00
Tom Beckmann
56688c04cf lib: drop unused symbol, update regions after freeze_track is disabled, don't expose X or Bamf to the API 2014-07-18 09:44:04 +02:00
Rico Tzschichholz
8e24266c28 Some minor clean up 2014-07-18 07:37:33 +02:00
Tom Beckmann
3cb9dc60b2 add copyright header to ShadowEffect, add window property to WindowIcon class for easier handling 2014-07-17 19:05:40 +02:00
Tom Beckmann
fedd31b2d6 go back to png icon as svg one would render the shadow weirdly (but keep the new scale) 2014-07-17 02:55:13 +02:00
Tom Beckmann
bf65d00e39 use a 36px svg close icon 2014-07-17 02:18:34 +02:00
Rico Tzschichholz
f585ca7fe2 Clean up WorkspaceManager 2014-06-24 11:50:46 +02:00
Rico Tzschichholz
97b71fce4b More API clean ups
Drop "window_stacking_order" and "windows_restacked" from window-manager
and replace it by an implementation in TiledWindowContainer
2014-06-23 21:29:18 +02:00
Rico Tzschichholz
345148df43 merge trunk 384 2014-06-22 09:17:52 +02:00
Tom Beckmann
32bb21243b improvements for multimonitor handling, cleanup previous commit 2014-06-17 17:19:42 +02:00
Tom Beckmann
15bc1b33ef fix icons sometimes not being loaded correctly, fix windows appearing on all workspaces instead of only the one they belong to 2014-06-17 16:17:23 +02:00
Tom Beckmann
5adb6566f6 allow keybindings to pass through while in multitaskingview, start implementing selecting windows via keyboard 2014-06-15 23:43:34 +02:00
Tom Beckmann
3aaa42dc90 fix fallbacks not being used and remove the new ones 2014-06-15 20:36:39 +02:00
Tom Beckmann
ff48c641fd Various small fixes, added workspace manager, new animations for IconGroup 2014-06-14 19:19:24 +02:00
Rico Tzschichholz
a06d946710 Updates for Mutter 3.13.2+ 2014-06-03 21:24:52 +02:00
Tom Beckmann
0af86fdbf9 greatly reduce number of crashes by adding fallback to icon loading code 2014-05-30 21:57:17 +02:00
Tom Beckmann
2977609308 add dnd interactions 2014-04-29 21:35:49 +02:00
Rico Tzschichholz
0257a23691 codestyle: Drop trailing spaces/tabs 2014-04-08 14:51:06 +02:00
Tom Beckmann
7cf89b4f59 Add an endsessiondialog 2014-04-07 14:41:14 +02:00
Tom Beckmann
d808003e1d fix ordering of class members, make recalculate_regions private 2014-04-06 20:03:24 +02:00
Tom Beckmann
8bd6411dd8 various little fixes 2014-03-12 21:04:08 +01:00
Tom Beckmann
e26d4274a0 Fix various little problems, add track_actor functionality, add extended
plugin info allowing plugins to replace built-in componenets, allow them
to delay their load.
2014-03-12 20:06:23 +01:00
Rico Tzschichholz
8aaafce0ff lib: Drop obsolete cmake file 2014-03-09 20:03:52 +01:00
Rico Tzschichholz
273c03bea3 lib: Add missing copyright headers 2014-03-09 18:07:13 +01:00
Rico Tzschichholz
1d28ef24ef Drop support for Mutter < 3.8.4 2014-03-09 18:04:43 +01:00
Tom Beckmann
3fcb14e764 Ported plugins branch to autotools based on the setup of lp:~docky-core/docky/plank-docky
Default plugins are not compiled and installed yet
2014-03-08 20:05:56 +01:00
Cody Garver
d9e0e7729d Remove using statements 2013-12-19 14:57:54 -06:00
Tom Beckmann
bae5d02475 split gala into a wm part and a library, add plugin system, move zooming out to a plugin, add a template plugin 2013-12-17 20:10:03 +01:00