15#include <gtkmm/entry.h>
16#include <gtkmm/spinbutton.h>
17#include <gtkmm/window.h>
18#include <gtkmm/version.h>
20#ifdef GDK_WINDOWING_X11
21#include <gdk/x11/gdkx.h>
36 if (
auto w = win->get_transient_for()) {
44 e->signal_activate().connect([e] {
51#if GTKMM_CHECK_VERSION(4, 14, 0)
52 s.signal_activate().connect([&] {
65#ifdef GDK_WINDOWING_X11
70 if (prefs->getBool(
"/options/dialogsskiptaskbar/value")) {
72 auto root = gtk_widget_get_root(window.Gtk::Widget::gobj());
73 if (GTK_IS_NATIVE(
root)) {
74 auto native = GTK_NATIVE(
root);
75 auto surface = gtk_native_get_surface(native);
76 if (GDK_IS_X11_SURFACE(
surface)) {
77 auto x11surface = GDK_X11_SURFACE(
surface);
78 gdk_x11_surface_set_skip_taskbar_hint(x11surface, TRUE);
91 if (transient_policy) {
93 if (SP_ACTIVE_DESKTOP) {
94 SP_ACTIVE_DESKTOP->setWindowTransient(window, transient_policy);
Cairo::RefPtr< Cairo::ImageSurface > surface
static Preferences * get()
Access the singleton Preferences object.
Editable view implementation.
void sp_transientize(Gtk::Window &window)
Make the argument dialog transient to the currently active document window.
void sp_dialog_defocus_on_enter(Gtk::Entry *e)
void sp_dialog_defocus(Gtk::Window *win)
Remove focus from window to whoever it is transient for.
Event handler for dialog windows.
@ PREFS_DIALOGS_WINDOWS_NORMAL
@ PREFS_DIALOGS_WINDOWS_AGGRESSIVE
@ PREFS_DIALOGS_WINDOWS_NONE
Singleton class to access the preferences file in a convenient way.