Bilal Elmoussaoui
b27234cfef
startup/x11: Fix compiling without startup-notification
...
If startup_notification is disabled, linking against sn would fail
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2425 >
2022-05-25 10:38:25 +00:00
Jonas Ådahl
2712555c71
display: Don't include sn.h from display-private.h
...
It has some annoying macro requirement to not nag about API stability;
try to limit its exposure.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861 >
2021-07-15 11:25:21 +02:00
Jonas Ådahl
313e3e771c
Make meta_* logging utilities not require line break
...
Unlike g_* logging utilities, the meta_* counterparts behave like odd
printf() functions. Lets change that so they fit better into how logging
is done everywhere else.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1466
2020-10-08 16:38:41 +02:00
Benjamin Berg
5962ee7939
startup: Fix possible crash in startup notifications
...
A GAppInfo is not guaranteed to have a filename or an application (or
rather a desktop ID). Add a check for application_id to be non-NULL
before trying to call sn_launcher_set_application_id, which would crash
otherwise.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1392
2020-08-29 08:49:37 +00:00
Christian Rauch
9f50b2cef2
startup: Fix build with 'startup_notification=false'
...
https://gitlab.gnome.org/GNOME/mutter/merge_requests/958
2019-12-05 01:27:14 +00:00
Carlos Garnacho
ab7ef5f8bf
core: Fix differing sequence timestamp precision expectations
...
Calculations were being done at places accounting on usec precision,
however those are still treated as having msec precision at places. Let's
consolidate for the latter since it requires less changes across the board
and usec precision doesn't buy us anything here.
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/541
2019-04-17 18:41:13 +02:00
Niels De Graef
1c6ea5d1db
Use a consistent style for enum braces
...
https://gitlab.gnome.org/GNOME/mutter/merge_requests/361
2019-02-28 09:31:01 +01:00
Carlos Garnacho
ca67d52cac
x11: Add method to launch applications, using SnLauncher
...
The method spawns a launch request that will get caught by the
SnMonitor we have in place to handle X11 startup notification
messages.
2019-01-18 17:03:57 +00:00
Carlos Garnacho
6b7bd91610
x11: Complete X11 startup sequence on SN_MONITOR_EVENT_COMPLETED
2018-11-23 12:27:13 +00:00
Carlos Garnacho
8a10196382
x11: Set all MetaStartupSequence properties for libsn sequences
2018-11-23 12:27:13 +00:00
Carlos Garnacho
26fbd56a95
x11: Refactor the X11 startup notification bits into src/x11
...
Only one little bit left in MetaDisplay, because SnStartupSequence
is exposed in API there. These bits will be removed in future
commits.
2018-11-23 12:27:13 +00:00