Jump to content
funtoo forums

jorgicio

Members
  • Content Count

    58
  • Joined

  • Last visited

  • Days Won

    2

jorgicio last won the day on May 17 2015

jorgicio had the most liked content!

About jorgicio

  • Rank
    Advanced Member

Personal

  • Location
    Vi?a del Mar
  1. jorgicio

    Xorg Segmentation Fault for Kernels 4.x

    Are you using current? Maybe check this http://forums.funtoo.org/topic/585-xf86-video-intel-crashes-at-sna-works-at-uxa/
  2. jorgicio

    Wanna try Libreoffice 5 on Funtoo? Read here!

    For LibreOffice, no. It requires, at least, 6GB.
  3. jorgicio

    Wanna try Libreoffice 5 on Funtoo? Read here!

    It may take lesser time than mine, so good luck :D
  4. jorgicio

    Wanna try Libreoffice 5 on Funtoo? Read here!

    An i5, SandyBridge, 2nd Generation, with /var/tmp in tmpfs.
  5. Do it at your own risk! I tried it on my Laptop, and it works, after 3:30 hrs compiling. First, add my overlay with Layman. The name is "jorgicio". https://github.com/jorgicio/jorgicio-gentoo Then, unmask my version of Libreoffice 5 ebuild (the main package and libreoffice-l10n). Also, you must unmask the libwps-0.4.0, which is needed. Then upgrade both packages, and just wait and you're done. Now, a screenshot: https://gyazo.com/9f1fe08a3dcbf4225482c2a6b64d26fd
  6. jorgicio

    Are xkeyboard-config and pulseaudio forked?

    Ok, reported. Thanks :D
  7. Maybe I understand the case of Pulseaudio, but xkeyboard-config? 2 days ago, 2.15 was pulled in Gentoo ebuilds tree, but not in Funtoo. I consider it important because one of the features is the support of Latam variant for Dvorak Keyboard, which I use. Thanks!
  8. jorgicio

    moving from funtoo to gentoo...

    Some things in Funtoo are old, and so maybe some users want to go to Gentoo. Also, some packages are left out to upgrade, such as Samba, Subunit, Python and PHP (recent versions are masked and I don't know why). I understand why GCC is still 4.9 in Funtoo, as so as GTK+3 and GNOME, which needs some work to go without Systemd and with OpenRC (which is also a little bit older). Anyways, it also ensures most of the packages (in Current) are stable and functional. Maybe more stable is Funtoo current than Gentoo unstable, as some commented.
  9. jorgicio

    Best Portage GUI front-end...

    Portato is outdated. Just read the important announcement in the page: http://necoro.eu/portato/
  10. jorgicio

    libreoffice

    I don't know why Libreoffice is forked from Gentoo. There is the 4.4.3 version.
  11. jorgicio

    xf86-video-intel crashes at SNA, works at UXA

    I found the problem: Kernel 4.0. I applied the patch found there: https://bugzilla.opensuse.org/show_bug.cgi?id=931917. It did the trick. The patch: https://bugzilla.opensuse.org/attachment.cgi?id=635268 EDIT: I also reported the problem in the Gentoo bugtracker, so if approved, it'll be in some next tree sync. https://bugs.gentoo.org/show_bug.cgi?id=552124 BREAKING NEWS: The patch is tested and accepted in Gentoo, so yes, it WILL be in a next sync here.
  12. jorgicio

    Python 3.4

    I compiled globally all Python-based packages which includes all based in Python 3. Work fine with 3.4. So i think mask is not needed anymore. BTW, it's almost one year that's masked. The same i think about PHP 5.6.
  13. jorgicio

    xf86-video-intel crashes at SNA, works at UXA

    Well, I didn't because it's not a Funtoo problem. The ebuild is the same from Gentoo, so I reported there.
  14. Hi! I have a Sandybridge, with that Intel integrated driver, and I ever had the xf86-video-intel with sna enabled and uxa disabled. It ever worked. However, yesterday, came out a new fix, the version 2.99.917-r1, and it broke everything. I tried downgrading to the previous version, and the same happens. I also have KMS enabled. So the only workaround, by the moment, is disabling SNA and enabling UXA. It works, although I know SNA is better than UXA, but at least, it works. Does it happen the same to someone else since then?
  15. Hi! Today I tried a trick to disable (optionally) the CSD (Client-Side Decorations) in GTK+3 apps, which is forced since 3.12. For that, you need to patch it first. Luckily, the GTK+3 ebuild contains the epatch_user instruction, so it lets us apply our patches. The patch is the following: diff -r 74e017a49c0c gtk/gtkdialog.c --- a/gtk/gtkdialog.c Sat Sep 27 07:35:24 2014 +0300 +++ b/gtk/gtkdialog.c Wed Oct 01 17:34:31 2014 +0300 @@ -245,11 +245,12 @@ gint use_header_bar) { GtkDialogPrivate *priv = dialog->priv; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; if (use_header_bar == -1) return; - priv->use_header_bar = use_header_bar; + priv->use_header_bar = disable_csd ? FALSE : use_header_bar; } /* A convenience helper for built-in dialogs */ @@ -257,10 +258,12 @@ gtk_dialog_set_use_header_bar_from_setting (GtkDialog *dialog) { GtkDialogPrivate *priv = dialog->priv; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; g_assert (!priv->constructed); - g_object_get (gtk_widget_get_settings (GTK_WIDGET (dialog)), + if (!disable_csd) + g_object_get (gtk_widget_get_settings (GTK_WIDGET (dialog)), "gtk-dialogs-use-header", &priv->use_header_bar, NULL); } @@ -293,11 +296,12 @@ { GtkDialog *dialog = GTK_DIALOG (object); GtkDialogPrivate *priv = dialog->priv; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; switch (prop_id) { case PROP_USE_HEADER_BAR: - g_value_set_int (value, priv->use_header_bar); + g_value_set_int (value, disable_csd ? FALSE : priv->use_header_bar); break; default: @@ -707,9 +711,10 @@ static void gtk_dialog_init (GtkDialog *dialog) { + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; dialog->priv = gtk_dialog_get_instance_private (dialog); - dialog->priv->use_header_bar = -1; + dialog->priv->use_header_bar = disable_csd ? FALSE : -1; dialog->priv->size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); gtk_widget_init_template (GTK_WIDGET (dialog)); diff -r 74e017a49c0c gtk/gtkwindow.c --- a/gtk/gtkwindow.c Sat Sep 27 07:35:24 2014 +0300 +++ b/gtk/gtkwindow.c Wed Oct 01 17:34:31 2014 +0300 @@ -3822,9 +3822,13 @@ #ifdef GDK_WINDOWING_X11 if (GDK_IS_X11_DISPLAY (gtk_widget_get_display (widget))) { + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; GdkScreen *screen; GdkVisual *visual; + if (disable_csd) + return FALSE; + screen = gtk_widget_get_screen (widget); if (!gdk_screen_is_composited (screen)) @@ -3861,6 +3865,10 @@ GtkWindowPrivate *priv = window->priv; GtkWidget *widget = GTK_WIDGET (window); GdkVisual *visual; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; + + if (disable_csd) + return; /* We need a visual with alpha */ visual = gdk_screen_get_rgba_visual (gtk_widget_get_screen (widget)); @@ -3905,6 +3913,7 @@ GtkWindowPrivate *priv = window->priv; GdkVisual *visual; gboolean was_mapped; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; g_return_if_fail (GTK_IS_WINDOW (window)); @@ -3922,7 +3931,7 @@ unset_titlebar (window); - if (titlebar == NULL) + if (disable_csd || titlebar == NULL) { priv->custom_title = FALSE; priv->client_decorated = FALSE; @@ -4005,11 +4014,12 @@ gdk_window = gtk_widget_get_window (GTK_WIDGET (window)); if (gdk_window) { + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; if (priv->decorated) { - if (priv->client_decorated) + if (priv->client_decorated && !disable_csd) gdk_window_set_decorations (gdk_window, 0); - else if (priv->custom_title) + else if (priv->custom_title && !disable_csd) gdk_window_set_decorations (gdk_window, GDK_DECOR_BORDER); else gdk_window_set_decorations (gdk_window, GDK_DECOR_ALL); @@ -5611,6 +5621,10 @@ { GtkWindowPrivate *priv = window->priv; const gchar *csd_env; + gboolean disable_csd = g_strcmp0 (g_getenv ("GTK_DISABLE_CSD"), "1") == 0; + + if (disable_csd) + return FALSE; if (priv->csd_requested) return TRUE; You can save it with thenameyouwant.patch and put it inside /etc/portage/patches/x11-libs/gtk+:3/ (if that path doesn't exist, create those directories). Then, reinstall it: emerge -1 gtk+:3 Then, you have 2 options: As a system environment variable, you can create a file named gtk3nocsd.sh with the following content: #!/bin/sh export GTK_DISABLE_CSD=1 And put it into /etc/profile.d. Or, an alternative at user level, you can add this line in your .xprofile or .profile in your $HOME: export GTK_DISABLE_CSD=1 After GTK+3 recompiled successfully, restart the session, and voil?! PS: The CSS method just partially solves the problem, but not the shadow drawing, which is delayed. This won't happen with this tweak.
×