/srv/irclogs.ubuntu.com/2015/03/15/#ubuntu-desktop.txt

l3onlarsu, can you please take a look at https://code.launchpad.net/~l3on/ubuntu-themes/csd-fix-resize-and-shadow/+merge/252992 .15:38
l3onThanks in advance!15:38
Trevinhol3on: we're unfortunately having troubles in supporting shadows in compiz side :(17:10
l3onTrevinho, that's a patch for the theme, nothing more. What about compiz?17:11
Trevinhol3on: I know, but the fact is when enabling shadows, gtk windows defines a gtk_frame_extent, that compiz should ignore... but doing that is currently breaking some other stuff17:12
l3onlike resizing ?17:12
larsul3on: ya, this depends on compiz, which is why we don't have this yet18:35
larsul3on: I also don't like the padding (and it shouldn't be in the same commit)18:35
larsul3on: btw, this branch contains some headerbar fixes if you're interested: lp:~larsu/ubuntu-themes/titlebars18:39
larsuit makes the decoration buttons look more like unity's18:39
l3onlarsu, Trevinho ok I got it ... we need Compiz as "shadow maker". That's clear... Anyway, such kind of changes (the ones I proposed) could be a temporary workaround... no?20:26
l3onlarsu, ah.. interesting branch, the icons are too big... aren't they ?20:26
larsul3on: by one pixel...20:28
l3onlarsu, I think that part of code should be in the same file of unity's one. I mean, instead of having a "apps/unity.css", it may have sense have a "windows.css"20:30
l3onlarsu, about padding: I found nice the padding added to nautilus titlebar.. buttons are bigger, it's true.. and (from my point of view) they are so because of the importance ... if a button is in HeaderBar you may assume it has a "primary function" in the app...20:32
l3onthat's way they are put in the HeaderBar. (imho)20:32
larsul3on: I put it in unity.css because it already existed20:32
larsuunity uses little padding almost everywhere20:33
larsuI don't think adding a lot of padding to those buttons makes sense20:33
l3onIn my opinion, this: http://i.imgur.com/0WYFu0H.png20:39
l3onis better than this: http://i.imgur.com/csPHkRG.png20:39
l3on(larsu unity.css is untouched, you used gtk-widgets.css.. that's why I said that)20:41
larsuoh, indeed20:41
larsumeh :)20:41
larsuI like the one with more padding as well, but I feel that it's not consistent with the rest of the theme20:42
l3onNot really .. padding comes from nautilus bar :)20:43
l3onlarsu, see this http://i.imgur.com/uIoxm10.png20:44
larsuthat's a toolbar, though20:45
larsunot sure - we can add it if people like it20:45
l3onok...20:45
larsubut as I said, please don't put it in the same merge request so that we can have some discussion about it20:45
* larsu has a feeling people will hate us if we widen their title bars20:46
larsualso, all of this is irelevant until compiz gets fixes20:46
larsu*fixed20:46
larsusadly :(20:46
l3onso, with compiz "fixed" every windows will be decorated via compiz itself ?20:46
larsuthat would be the fallback if implementing GTK_FRAME_EXTENTS fails20:47
larsunot sure what the status is on that20:47
larsuif we get frame extents, we can draw the shadows client side and resizing at the window border will still work20:48
l3onJust for the log: GTK_FRAME_EXTENTS has been dropped since GTK 3.13.120:49
larsul3on: really? In favor of what?20:50
larsugdk_x11_window_set_shadow_width() still sets it...20:52
l3onlarsu, I think now GTK checks only for gdk_screen_is_composited and has alpha (rgba). In 3.12 the library was sending a Xatom named _GTK_FRAME_EXTENTS to check the support ..20:57
l3onlarsu, now look at gtkwindow.c/gtk_window_supports_csd20:58
l3onso, in compiz you may not want to catch the GTK_FRAME_EXTENTS atom...20:59
larsubut how does it find out the actual extents of the window if we draw a shadow client side?20:59
larsuand like I said, it still sets the atom unconditionally on x1121:00
l3ongdk_x11_window_set_shadow_width is used only in a deprecated (since 3.12) function ... so we can asssume it deprecated as well21:02
larsul3on: no, it's the vfunc for gdk_window_set_shadow_width()21:04
larsuwhich is not deprecated21:04
larsuand the atom is still set on my machine21:05
larsufor windows with csd, of course21:05
l3onyou're right.21:10
l3onthe GTK says this: http://paste.ubuntu.com/10606460/21:11
l3onI misunderstood it.21:11
larsuah, makes sense21:12
larsuno worrie21:12
l3onlarsu, ok, padding removed. I will prepare another merge request21:17
l3ongtg21:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!