/srv/irclogs.ubuntu.com/2011/06/24/#ayatana.txt

=== m_conley_away is now known as m_conley
=== m_conley is now known as m_conley_away
=== m_conley_away is now known as m_conley
=== m_conley is now known as m_conley_away
=== _LibertyZero is now known as LibertyZero
didrocksgood morning07:42
MacSlowgood morning everybody08:28
htorque_good morning, everyone! nux won't build due to a "present but cannot be compiled" warning (http://paste.ubuntu.com/631142/). is this known or should i report a bug?08:34
=== htorque_ is now known as htorque
bschaeferhtorque: did you try installing the missing header its telling you at the bottom?09:03
bschaeferhtorque: sudo apt-get install google-mock09:04
=== gabon_ is now known as gabon
htorquebschaefer: yes (see line 2). the warning refers to http://www.gnu.org/s/hello/manual/autoconf/Present-But-Cannot-Be-Compiled.html but that doesn't help me a lot09:07
=== hunger_ is now known as hunger
=== daker_ is now known as daker
andyrockDBO, around?11:33
andyrockor didrocks...11:34
didrockssure11:34
andyrockabout this bug (https://bugs.launchpad.net/unity/+bug/727903)11:35
ubot5Ubuntu bug 727903 in unity (Ubuntu) "Dropping a file into a window via the 'drag file to Launcher, then drag file to Spread' interaction fails to load the file into the selected window" [High,Confirmed]11:35
andyrockis a compiz bug...11:36
andyrockdidrocks, so it is writtern in the proposed solution...11:36
andyrockdidrocks, so we should add the project compiz, right?11:39
didrocksandyrock: right, should be fixed in compiz itself. If you can do it, it's awesome this one ruined some presentation I was giving on unity! :)11:40
didrocksandyrock: shold detect a drag in progress + hover to collapse11:41
didrocksto avoid people dropping the file to fast11:41
didrocksand then blocking compiz11:41
didrocksandyrock: I think that smspillaz will be able to give you some guidance11:41
andyrockdidrocks, i can just build scale plugin right?11:43
andyrockwithout building all compiz...11:43
didrocksandyrock: right, if you cmake .. and go the right directory and just call "make"11:44
didrocksthat should work :)11:44
andyrockdidrocks, compiz coding style is weird btw :)11:44
didrocks+111:45
didrocksit's the Xorg one :)11:45
didrocksI'm really not used to it11:45
andyrockdidrocks, weird is an "euphemism" :)11:53
jonolol11:55
didrocksheh11:59
didrocksit's like "I like mixing tabs and spaces AND I KNOW IT!" :)11:59
andyrockmuahahahahah12:01
jcastroheya gord12:04
jcastrohttps://bugs.launchpad.net/ubuntu/+source/unity/+bug/74160312:04
ubot5Ubuntu bug 741603 in unity (Ubuntu) "Window buttons disappear on maximized windows by changing focus to another maximised window on multi-monitor setups" [Undecided,Incomplete]12:04
jcastrowhat information do you need here for this not to be incomplete??12:04
gordjcastro, it was a long time ago (in ubuntu years) so bare with me :)12:21
gordjcastro, so i assigned ayatana-design which means that i'm waiting for input on them on what the correct solution there is12:21
=== MacSlow is now known as MacSlow|lunch
njpateljcastro, why you up so early?12:35
gordsleep-ayatana-ing, it happens ;)12:43
andyrockJohnLea, ping13:57
czajkowskianyone in Millbank today ?14:02
=== m_conley_away is now known as m_conley
andyrockin bug https://bugs.launchpad.net/unity/+bug/72790314:16
ubot5Ubuntu bug 727903 in unity (Ubuntu) "Dropping a file into a window via the 'drag file to Launcher, then drag file to Spread' interaction fails to load the file into the selected window" [High,Confirmed]14:16
andyrocki read:14:16
andyrockOpen two firefox windows. Drag a .html or .png file to the Firefox icon in the Launcher. As soon as the spread appears quickly drop the file to one of the firefox windows. The file should open into the window it was just dropped on but nothing happens.14:16
andyrocki think that the dnd in scale plugin work in this way:14:17
andyrockif we doesn't move the mouse a timeout starts otherwise it stops....14:20
andyrockwhen the timeout finish the spread disappers and we can drop on hovered/selected window14:20
andyrocksomeone could give me design feedback?14:21
=== MacSlow|lunch is now known as MacSlow
JohnLeaandyrock, pong16:02
andyrockJohnLea, are you still around?16:48
JohnLeaandyrock; I'm still here ;-)16:48
andyrockJohnLea, about this bug https://bugs.launchpad.net/ubuntu/+source/unity/+bug/74160316:48
ubot5Ubuntu bug 741603 in unity (Ubuntu) "Window buttons disappear on maximized windows by changing focus to another maximised window on multi-monitor setups" [Undecided,Incomplete]16:48
andyrocki read:16:49
andyrockOpen two firefox windows. Drag a .html or .png file to the Firefox icon in the Launcher. As soon as the spread appears quickly drop the file to one of the firefox windows. The file should open into the window it was just dropped on but nothing happens.16:49
andyrockare you sure that the intended behavior is not this?16:50
andyrockOpen two firefox windows. [...] As soon as the spread appears16:50
andyrockmove the mouse on the wanted window a wait for a shor timeout16:51
JohnLeathat's a bug16:51
andyrockas soon as the wanted window is show drop the file in the window...16:51
JohnLeathe whole 'drag and drop via the Launcher' functionality is less than 20% built and very buggy16:51
JohnLeayou should be able to drop a file on to either the launcher icon or a window in the spread and it get's loaded into the selected application/window16:52
JohnLeabut very incomplete atm16:53
andyrocki read the scale pluing code... this is not the wanted behavior (at least i'm pretty sure about it)16:54
JohnLeaandyrock; but what does this have to do with bug 741603 ?16:54
ubot5Launchpad bug 741603 in unity (Ubuntu) "Window buttons disappear on maximized windows by changing focus to another maximised window on multi-monitor setups" [Undecided,Incomplete] https://launchpad.net/bugs/74160316:54
andyrockwrong bug16:54
andyrockin bug https://bugs.launchpad.net/unity/+bug/72790316:54
ubot5Ubuntu bug 727903 in unity (Ubuntu) "Dropping a file into a window via the 'drag file to Launcher, then drag file to Spread' interaction fails to load the file into the selected window" [High,Confirmed]16:54
JohnLeaandyrock; ahh yes, that bug16:55
andyrocki don't understand if the bug is:16:55
andyrocka) you could not drop a file in a window in the spread16:56
andyrockb) the timeout never finish since if you have not a touchpad just 1 px mouse potion restart the timeout16:57
andyrockc) both16:57
JohnLeaandyrock; yes, you should be able to drop a file on to any window in a spread and it performs exactly the same action as dropping the file in the same location in the window when it is not spread16:58
JohnLeaandyrock; but at the moment you cannot drop a file on to a exact location in a window while the window is displayed as part of a spread16:59
JohnLeaandyrock; does that answer your question?16:59
andyrockJohnLea, and what happens to the timeout?17:03
andyrockJohnLea, we don't need a timeout if we want just drop...17:03
JohnLeaandyrock; we still want the timeout, so that if you continue to hover over one of the windows you exit the spread and that window jumps to the front of the z-order stack17:05
andyrockJohnLea, so the answer to my question is c)... ;)17:06
JohnLeaandyrock; yes ;-)17:07
JohnLeaandyrock; that would have been a easier answer ;-)17:07
andyrockJohnLea, thx... i think that DBO when wrote the "proposed solution" considered just the timeout bug ;)17:08
DBOI do17:09
DBOits a timeout issue17:09
DBOif you want to fix the issue of being able to drop without ending the spread...17:09
DBOwell... good luck!17:09
DBOI have a theory on how that might be possible17:09
DBObut I fear it wont ever really be stable17:09
JohnLeaandyrock; cool, thx!17:10
andyrockDBO, i know... I was going to ask smspillaz, but I had already figured out the answer «forget it»! :)17:12
DBOandyrock, excellent :)17:12
andyrockDBO, i am just asking «Why DBO and Ubuntu guys tagged it as bitesize one??? O.o»17:13
DBOit requires no real architecturing of code17:14
DBOyou just need to find the relevant code17:14
DBOand tweak it17:14
DBO(hopefully)17:14
DBObasically bitesize to me has always been "no significant new code" or at least "no new code structures"17:15
andyrockDBO, another bug with the spread-dnd thing is that when the timeout finish and wanted window appears, you need an extra motion otherwise it doen't code17:15
andyrock*code->work17:15
DBOyep17:15
DBOnot much you can do about that either17:15
DBOwelcome to the XDND protocol baby17:15
DBOif you dont move your mouse, it assumes nothing has changed17:15
jcastrowhich bug are you guys talking about?17:16
andyrockfor timeout thing we can use "rectangle thing" after the target receive xdndposition and send a xdndstatus?17:16
DBOandyrock, can you restate that?17:17
andyrockjcastro, https://bugs.launchpad.net/unity/+bug/72790317:17
ubot5Ubuntu bug 727903 in unity (Ubuntu) "Dropping a file into a window via the 'drag file to Launcher, then drag file to Spread' interaction fails to load the file into the selected window" [High,Confirmed]17:17
andyrockDBO, sure...17:17
andyrockDBO, from xdnd procol17:18
andyrockStep 5:17:18
andyrockThe target sends a ClientMessage of type XdndStatus. (2) This tells the source whether or not it will accept the drop, and, if so, what action will be taken. It also includes a rectangle that means "don't send another XdndPosition message until the mouse moves out of here".17:18
DBOah so here is the tricky part17:19
DBOso you have to think about the sender implementation17:19
DBOthe way they implement basically goes like this:17:19
DBO1) get mouse motion event17:19
DBO2) figure out window under mouses new location17:19
DBO3a) if window is the same as previous, check bounding area and maybe send new XdndPosition signal17:20
DBO3b) if window is new window from previous, send XdndLeave to previous window, send XDndEnter to new window, send XdndPosition to new window17:20
DBO4) awaite XdndStatus before sending next XdndPosition17:21
DBO5) return to 117:21
DBOnow in our case what we do is move the window out from under Xdnd17:21
DBOhowever the implementor wont see this until the next motion event17:21
DBO(where it will then take path 3b17:21
DBOandyrock, ^17:22
andyrockDBO, i'm translating! :)17:23
andyrockDBO, i got it17:24
DBOandyrock, you see the inherent problem then?17:24
DBOwe could solve the issue by changing how these implementations work a little17:24
DBObut that would require patching at least GTK and Qt17:24
andyrockDBO, what do you mean for `now in our case what we do is move the window out from under Xdnd`17:25
andyrock?17:25
DBOso when compiz opens up the scale switcher thing17:27
DBOit pops up a full screen input window17:27
DBOwhich traps all Xdnd events17:27
DBO(which is how it figures out which window you hovered)17:27
andyrockDBO, i got it... but when i was talking about the `rectangle thing` i wanted just solve the timeout problem17:29
andyrockDBO, that is restarted also for 1px motion.... :)17:30
DBOandyrock, I am not sure I understand what you mean17:31
andyrockDBO, let me explain.... as xdnd specifications say: «It also includes a rectangle that means "don't send another XdndPosition message until the mouse moves out of here".»17:32
andyrockit also -> xdndstatus17:32
DBOright17:32
andyrockso if we include a "small" rectangle with the center in the current mouse position17:32
DBOthe smallest rectangle you can send is 1x117:32
DBOwhich most things do send17:33
andyrockwe won't receive other xdndposition, unless the mouse movement is worthy of note17:34
DBOright17:34
andyrockif we don't receive xdndposition, the timer will not reset everytime...17:35
DBOyes but you also risk not detecting if the mouse is over the right window17:35
DBOI see what you are saying however17:36
DBOand if you are careful about your rectangles, you may have a very viable solution17:36
DBOin fact I rather like it the more I think of it17:36
DBO+117:36
DBOactually I just thought of a problem17:36
DBOXDND says that you dont *have* to respect that rectangle17:37
DBOif an implementation chose17:37
DBOit could just send updates all the time, no matter what17:37
andyrocklet me say: xdnd sucks :)17:37
DBOyes17:38
DBOyes it does17:38
=== gabon_ is now known as gabon
jaberwokeyHi everyone!  I'm got a simple question about the C api for app indicators.  Given the following code, how would I set up a callback for when an item is clicked?  https://gist.github.com/1045233  Total GTK noob, sorry. :P18:19
=== daker is now known as daker_
DaekdroomWhy every time I click and drag an item from a list within a qt app, the launcher won't hide anymore?19:09
=== jaberwokey is now known as davidboy
=== mhr3_ is now known as mhr3
davidboyAfter some poking around in DevHelp, I come up with the following: http://pastie.org/211738319:54
davidboyOnly one problem: It doesn't work. :D19:54
davidboyAnyone can tell me what I'm doing wrong?19:54
coz_hey all22:04
=== m_conley is now known as m_conley_away

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